Giter Club home page Giter Club logo

funr's People

Contributors

sahilseth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pythseq

funr's Issues

Getting rid of extra error messages.

For example, funr calls a function, which fails. In this case the only relevant error is of that function.

flowr run
try:      flowr -h run     to get more details on this function.
Error in run(wd = opts_flow$get("flow_run_path"), execute = FALSE) :
  Please choose a pipeline to run, from the above list.
Error in funr(args = commandArgs(trailingOnly = TRUE), script_name = "flowr",  :
Execution halted

The last line (Error in funr(args = commandArgs(trailingOnly = TRUE), script_name = "flowr",), does not add value.

If argument contains a "=" sign, it may not be parsed correctly

[root@650ee0cf2924 tmp]# flowr -v ultraseq::merge_sheets x=tumor___normal_1.mutect.txt .filter='judgement=='KEEP'' outfile=tmp.tsv
args:
-vultraseq::merge_sheetsx=tumor___normal_1.mutect.txt.filter=judgement==KEEPoutfile=tmp.tsv
script_args:
-v

using func:
ultraseq::merge_sheets
with final args:
x=tumor___normal_1.mutect.txt.filter=judgement==KEEPoutfile=tmp.tsv
loading pkg: ultraseq
Loading required package: assertthat
ultraseq: genomic flows made faster
args:
$x


$outfile


$.filter
[1] NA

$...



get_params: we have 3 parameters
x=tumor___normal_1.mutect.txt
.filter=judgement==KEEP
outfile=tmp.tsv

starting process with: x=tumor___normal_1.mutect.txt
[1] "tumor___normal_1.mutect.txt"
processed param: x value tumor___normal_1.mutect.txt

starting process with: .filter=judgement==KEEP
[1] "judgement"
processed param: .filter value NA

starting process with: outfile=tmp.tsv
[1] "tmp.tsv"
processed param: outfile value tmp.tsv
$x
[1] "tumor___normal_1.mutect.txt"

$outfile
[1] "tmp.tsv"

$.filter
[1] NA


Starting merge_sheets with params
 x: tumor___normal_1.mutect.txt
outfile: tmp.tsv
.filter: NA
List of 3
 $ x      : chr "tumor___normal_1.mutect.txt"
 $ outfile: chr "tmp.tsv"
 $ .filter: logi NA

Does not work inside `source`

bug1.R:

x <- file.path(funr::get_script_path(), "bug2.R") # works
source(x)

source(file.path(funr::get_script_path(), "bug2.R")) # fails

bug2.R:

print("Hi")

Rscript bug1.R:

[1] "Hi"
Error in path.expand(path) : invalid 'path' argument
Calls: source ... file.path -> <Anonymous> -> normalizePath -> path.expand
Execution halted

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.