Code Monkey home page Code Monkey logo

ecoip's People

Contributors

joelgranados avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ecoip's Issues

EcoIP tar.gz file does not download properly on windows.

I have tried installing the ecoip framework using an r shell, but have been unsuccessful. I am running a windows 7 ultimate x64 pc onto which I have installed the required imagemagick and gtk2.0, as well as R versions 2.15.0,2.15.2, and 3.01.2. In all these versions, I run the commands

source("http://sourceforge.net/projects/ecoip/files/ecoip_install.R/download")

eip.install()

After doing so, I get the following output

[1] "http://sourceforge.net/projects/ecoip/files/20130531/EcoIP_0.1-20130531.tar.gz/download"
[1] "~/EcoIP_0.1-20130531.tar.gz"
cygwin warning:
MS-DOS style path detected: C:\Users\Documents/EcoIP_0.1-20130531.tar.gz
Preferred POSIX equivalent is: /cygdrive/c/Users//Documents/EcoIP_0.1-20130531.tar.gz
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
--2013-07-01 13:10:44-- http://sourceforge.net/projects/ecoip/files/20130531/EcoIP_0.1-20130531.tar.gz/download
Resolving sourceforge.net (sourceforge.net)... 216.34.181.60
Connecting to sourceforge.net (sourceforge.net)|216.34.181.60|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://downloads.sourceforge.net/project/ecoip/20130531/EcoIP_0.1-20130531.tar.gz?r=&ts=1372698647&use_mirror=iweb [following]
--2013-07-01 13:10:45-- http://downloads.sourceforge.net/project/ecoip/20130531/EcoIP_0.1-20130531.tar.gz?r=&ts=1372698647&use_mirror=iweb
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.34.181.59
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://iweb.dl.sourceforge.net/project/ecoip/20130531/EcoIP_0.1-20130531.tar.gz [following]
--2013-07-01 13:10:45-- http://iweb.dl.sourceforge.net/project/ecoip/20130531/EcoIP_0.1-20130531.tar.gz
Resolving iweb.dl.sourceforge.net (iweb.dl.sourceforge.net)... 70.38.0.134, 2607:f748:10:12::5f:2
Connecting to iweb.dl.sourceforge.net (iweb.dl.sourceforge.net)|70.38.0.134|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6427656 (6.1M) [application/x-gzip]
Saving to: C:\\Users\\<USER>\\Documents/EcoIP_0.1-20130531.tar.gz' ' 0K .......... .......... .......... .......... .......... 0% 596K 10s 50K .......... .......... .......... .......... .......... 1% 1.17M 8s 100K .......... .......... .......... .......... .......... 2% 938K 7s 150K .......... .......... .......... .......... .......... 3% 1.26M 7s 200K .......... .......... .......... .......... .......... 3% 1.25M 6s 250K .......... .......... .......... .......... .......... 4% 1.31M 6s 300K .......... .......... .......... .......... .......... 5% 869K 6s 350K .......... .......... .......... .......... .......... 6% 989K 6s 400K .......... .......... .......... .......... .......... 7% 890K 6s 450K .......... .......... .......... .......... .......... 7% 1.26M 6s 500K .......... .......... .......... .......... .......... 8% 945K 6s 550K .......... .......... .......... .......... .......... 9% 53.8K 14s 600K .......... .......... .......... .......... .......... 10% 158K 16s 650K .......... .......... .......... .......... .......... 11% 297K 16s 700K .......... .......... .......... .......... .......... 11% 421K 15s 750K .......... .......... .......... .......... .......... 12% 420K 15s 800K .......... .......... .......... .......... .......... 13% 722K 14s 850K .......... .......... .......... .......... .......... 14% 573K 14s 900K .......... .......... .......... .......... .......... 15% 718K 14s 950K .......... .......... .......... .......... .......... 15% 643K 13s 1000K .......... .......... .......... .......... .......... 16% 867K 13s 1050K .......... .......... .......... .......... .......... 17% 94.8K 15s 1100K .......... .......... .......... .......... .......... 18% 352K 14s 1150K .......... .......... .......... .......... .......... 19% 469K 14s 1200K .......... .......... .......... .......... .......... 19% 546K 14s 1250K .......... .......... .......... .......... .......... 20% 657K 13s 1300K .......... .......... .......... .......... .......... 21% 717K 13s 1350K .......... .......... .......... .......... .......... 22% 682K 13s 1400K .......... .......... .......... .......... .......... 23% 889K 12s 1450K .......... .......... .......... .......... .......... 23% 630K 12s 1500K .......... .......... .......... .......... .......... 24% 864K 12s 1550K .......... .......... .......... .......... .......... 25% 895K 11s 1600K .......... .......... .......... .......... .......... 26% 887K 11s 1650K .......... .......... .......... .......... .......... 27% 719K 11s 1700K .......... .......... .......... .......... .......... 27% 1.02M 11s 1750K .......... .......... .......... .......... .......... 28% 1.12M 10s 1800K .......... .......... .......... .......... .......... 29% 928K 10s 1850K .......... .......... .......... .......... .......... 30% 764K 10s 1900K .......... .......... .......... .......... .......... 31% 996K 10s 1950K .......... .......... .......... .......... .......... 31% 1.02M 9s 2000K .......... .......... .......... .......... .......... 32% 1.05M 9s 2050K .......... .......... .......... .......... .......... 33% 852K 9s 2100K .......... .......... .......... .......... .......... 34% 1.12M 9s 2150K .......... .......... .......... .......... .......... 35% 863K 8s 2200K .......... .......... .......... .......... .......... 35% 1.13M 8s 2250K .......... .......... .......... .......... .......... 36% 930K 8s 2300K .......... .......... .......... .......... .......... 37% 1.11M 8s 2350K .......... .......... .......... .......... .......... 38% 1.20M 8s 2400K .......... .......... .......... .......... .......... 39% 1.09M 7s 2450K .......... .......... .......... .......... .......... 39% 1.09M 7s 2500K .......... .......... .......... .......... .......... 40% 1.27M 7s 2550K .......... .......... .......... .......... .......... 41% 1.68M 7s 2600K .......... .......... .......... .......... .......... 42% 920K 7s 2650K .......... .......... .......... .......... .......... 43% 1.79M 7s 2700K .......... .......... .......... .......... .......... 43% 1.11M 6s 2750K .......... .......... .......... .......... .......... 44% 1.42M 6s 2800K .......... .......... .......... .......... .......... 45% 1.43M 6s 2850K .......... .......... .......... .......... .......... 46% 1.31M 6s 2900K .......... .......... .......... .......... .......... 46% 1.13M 6s 2950K .......... .......... .......... .......... .......... 47% 1.40M 6s 3000K .......... .......... .......... .......... .......... 48% 1.48M 6s 3050K .......... .......... .......... .......... .......... 49% 1.67M 5s 3100K .......... .......... .......... .......... .......... 50% 459K 5s 3150K .......... .......... .......... .......... .......... 50% 1.03M 5s 3200K .......... .......... .......... .......... .......... 51% 1.22M 5s 3250K .......... .......... .......... .......... .......... 52% 1.40M 5s 3300K .......... .......... .......... .......... .......... 53% 1.86M 5s 3350K .......... .......... .......... .......... .......... 54% 1.33M 5s 3400K .......... .......... .......... .......... .......... 54% 823K 5s 3450K .......... .......... .......... .......... .......... 55% 2.09M 4s 3500K .......... .......... .......... .......... .......... 56% 982K 4s 3550K .......... .......... .......... .......... .......... 57% 2.45M 4s 3600K .......... .......... .......... .......... .......... 58% 1.09M 4s 3650K .......... .......... .......... .......... .......... 58% 1.06M 4s 3700K .......... .......... .......... .......... .......... 59% 2.06M 4s 3750K .......... .......... .......... .......... .......... 60% 1.19M 4s 3800K .......... .......... .......... .......... .......... 61% 2.14M 4s 3850K .......... .......... .......... .......... .......... 62% 985K 4s 3900K .......... .......... .......... .......... .......... 62% 1.50M 4s 3950K .......... .......... .......... .......... .......... 63% 1.24M 3s 4000K .......... .......... .......... .......... .......... 64% 1.70M 3s 4050K .......... .......... .......... .......... .......... 65% 1.69M 3s 4100K .......... .......... .......... .......... .......... 66% 1.56M 3s 4150K .......... .......... .......... .......... .......... 66% 2.03M 3s 4200K .......... .......... .......... .......... .......... 67% 1.59M 3s 4250K .......... .......... .......... .......... .......... 68% 1.30M 3s 4300K .......... .......... .......... .......... .......... 69% 1.73M 3s 4350K .......... .......... .......... .......... .......... 70% 2.57M 3s 4400K .......... .......... .......... .......... .......... 70% 2.34M 3s 4450K .......... .......... .......... .......... .......... 71% 1.65M 2s 4500K .......... .......... .......... .......... .......... 72% 1.59M 2s 4550K .......... .......... .......... .......... .......... 73% 1.50M 2s 4600K .......... .......... .......... .......... .......... 74% 2.60M 2s 4650K .......... .......... .......... .......... .......... 74% 1.75M 2s 4700K .......... .......... .......... .......... .......... 75% 1.87M 2s 4750K .......... .......... .......... .......... .......... 76% 2.17M 2s 4800K .......... .......... .......... .......... .......... 77% 41.3K 2s 4850K .......... .......... .......... .......... .......... 78% 824K 2s 4900K .......... .......... .......... .......... .......... 78% 295K 2s 4950K .......... .......... .......... .......... .......... 79% 421K 2s 5000K .......... .......... .......... .......... .......... 80% 427K 2s 5050K .......... .......... .......... .......... .......... 81% 723K 2s 5100K .......... .......... .......... .......... .......... 82% 581K 2s 5150K .......... .......... .......... .......... .......... 82% 708K 2s 5200K .......... .......... .......... .......... .......... 83% 706K 2s 5250K .......... .......... .......... .......... .......... 84% 949K 2s 5300K .......... .......... .......... .......... .......... 85% 718K 1s 5350K .......... .......... .......... .......... .......... 86% 940K 1s 5400K .......... .......... .......... .......... .......... 86% 960K 1s 5450K .......... .......... .......... .......... .......... 87% 709K 1s 5500K .......... .......... .......... .......... .......... 88% 1.29M 1s 5550K .......... .......... .......... .......... .......... 89% 929K 1s 5600K .......... .......... .......... .......... .......... 90% 883K 1s 5650K .......... .......... .......... .......... .......... 90% 1.33M 1s 5700K .......... .......... .......... .......... .......... 91% 901K 1s 5750K .......... .......... .......... .......... .......... 92% 1.33M 1s 5800K .......... .......... .......... .......... .......... 93% 913K 1s 5850K .......... .......... .......... .......... .......... 93% 1.34M 1s 5900K .......... .......... .......... .......... .......... 94% 1.30M 1s 5950K .......... .......... .......... .......... .......... 95% 883K 0s 6000K .......... .......... .......... .......... .......... 96% 1.33M 0s 6050K .......... .......... .......... .......... .......... 97% 1.14M 0s 6100K .......... .......... .......... .......... .......... 97% 1.33M 0s 6150K .......... .......... .......... .......... .......... 98% 1.28M 0s 6200K .......... .......... .......... .......... .......... 99% 1.19M 0s 6250K .......... .......... ....... 100% 34.2K=10s ' 2013-07-01 13:10:55 (618 KB/s) -C:\Users<USER>\Documents/EcoIP_0.1-20130531.tar.gz' saved [6427656/6427656]

Installing package(s) into ‘C:/Users/Dmitri/Documents/R/win-library/2.15’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Warning message:
package ‘~/EcoIP_0.1-20130531.tar.gz’ is not available (for R version 2.15.2)

Any idea as to how to resolve this?

Identify unused bins

When training the algorithm there is a probability of a bin not getting full by foreground nor background. This is not necessarily bad but the classification (training) of that bin as foreground or background can increase the accuracy of the model. The model calculation should specify this when calculating the model.

It could say something like: bins (10, 140 and 30) where not contained in foreground nor background. It should also give the ranges represented by each bin and should be capable of showing the user where these pixels are located so the user can decide to train them as foreground or background.

Create the wiki

Include Stuff about
how to run the examples and what software is needed.

help is a bit too long

Reduce the size of ./ecoip --help by differentiating between main help and complete help.

the name of command should change

when executing the help arguments we should output the correct command path.
Change ecoip_exec for whatever the calling script path was.

Decide on a way to refer to fg and bg internaly

In the internal structures in the dnbm we make profuse use of foreground and background concepts. Unfortunately there is two ways of using it: 1. with the names that the user gives and 2.with the internal structure names. Make the change to all internal structure.

Remove lonely source

Now that we are moving to an R package we should remove the lines that import what should already be in the environment.

Problems installing on Windows

Updated to R version 2.15.0. Then tried to follow instructions. My comments are in [brackets], commands I tried follow the ">" prompt, output follows immediately:

source("F:/CENS/Projects/EcoIP/ecoip.R", chdir=TRUE)
Error in library(getopt) : there is no package called ‘getopt’

ecoip_exec("--rinstall")
Error: could not find function "ecoip_exec"

[So, went to Packages > Install Package(s) > getopt. Installed fine.]

source("F:/CENS/Projects/EcoIP/ecoip.R", chdir=TRUE)
Error in library(EBImage) : there is no package called ‘EBImage’
Make sure you call source with chdir=TURE
Loading required package: fields
=== R MUST HAVE fields and digest INSTALLED ===
Loading required package: EBImage
=== Install EBImage. Consider instructions at http://www.bioconductor.org/packages/release/bioc/html/EBImage.html ===
Warning messages:
1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘fields’
2: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘EBImage’

source("http://bioconductor.org/biocLite.R")
biocLite("EBImage")

[Installed fine.]

source("F:/CENS/Projects/EcoIP/ecoip.R", chdir=TRUE)
Loading required package: abind
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Program Files/R/R-2.15.0/library/EBImage/libs/i386/EBImage.dll':
LoadLibrary failure: The specified procedure could not be found.

Error : package/namespace load failed for ‘EBImage’
Make sure you call source with chdir=TURE
Loading required package: fields
=== R MUST HAVE fields and digest INSTALLED ===
Loading required package: EBImage
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Program Files/R/R-2.15.0/library/EBImage/libs/i386/EBImage.dll':
LoadLibrary failure: The specified procedure could not be found.

In addition: Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘fields’
=== Install EBImage. Consider instructions at http://www.bioconductor.org/packages/release/bioc/html/EBImage.html ===

ecoip_exec("--rinstall")
Error in getopt(optMat, opt = cmdArgs) : long flag "rinstall" is invalid

[Hm. I will download the program Process Explorer to find out if EBImage.dll is being loaded. It exists in the specified subdirectory, just don't know why it's not loading.]

Halts when there is no csv lines

Execution halts when command finds a csv file with no poligon lines.

Command Used:
./ecoaqc --generate=DNBM
--train_dir=/src/ecoacq/Temp/images/11025-462-4125/2010noon/
--data_dir=
/src/ecoacq/Temp/images/11025-462-4125/2009noon/
--bins=200 --color_space="CIELAB" --folds=3

Should skip the csv file and ignore the image altogether.

create pipe/method that creates a comparison of all color spaces.

There are various ideas with this:

  1. Create a graph that contains all the histograms of each color component for foreground and background. There would be two columns: foreground and background. and there would be as many rows as color spaces.
  2. Same format as 1, but instead of histograms, we can output the histogram describing variables. Like mean and standard deviation.
  3. For each color component we output a number. This would represent the distance from the background histogram to the foreground histogram. (I like this one better).

create an error function

function(message) {cat (message); return(1)}

and then we can use it like this:
if (somthing bad) {return(function("error message"))}

ylim does not work when plotting a raw signal

If the user specifies a ylim range and is only plotting a raw signal, the ylim will have no effect.

Command used:
eip.plot("0/test/8b710cff.txt", si_lty="solid", ptitle="Plot 4", ylabl="Pixel Proportion", lwidth=1, CEX=1, minimum_show=-1, xlim=c(1,6), ylim=c(0,5) )

custom BG and FG names fail

When there are no annotations of the specified names, the resulting structure is NULL. It errors out with the following error.
Error in rep(c(TRUE, rep(FALSE, step - 1)), ceiling(len * percent)) :
invalid 'times' argument

Check R version first

The first thing we should do is check to see if we have R version 1.15 or greater.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.