Skip to content

Commit

Permalink
BUG+TST Data in a subdirectory cannot be collected
Browse files Browse the repository at this point in the history
This tests #141. From the original report:

> Parallel module exits with error, if the data are not in the same
> directory as the script. Running the parallel.ngl test exits with
> error, if data is moved into a subfolder.
  • Loading branch information
luispedro committed Dec 4, 2020
1 parent a6744d3 commit f1296c0
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/parallel_collect_subdir/cleanup.sh
9 changes: 9 additions & 0 deletions tests/parallel_collect_subdir/count_many.ngl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ngless "1.1"
import "parallel" version "0.6"

samples = readlines("samplefile")
sample = lock1(samples)
input = samfile(sample + ".sam.gz")

counts = count(input, features=["exon", "gene", "start_codon", "stop_codon"], subfeatures=["gene_id"], multiple={1overN}, gff_file="short.gtf")
collect(counts, ofile="output.RNA.txt", current=sample, allneeded=samples)
1 change: 1 addition & 0 deletions tests/parallel_collect_subdir/samplefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
subdir/sample1
1 change: 1 addition & 0 deletions tests/parallel_collect_subdir/short.gtf
1 change: 1 addition & 0 deletions tests/parallel_collect_subdir/subdir/sample.sam.gz
1 change: 1 addition & 0 deletions tests/parallel_collect_subdir/subdir/sample1.sam.gz

0 comments on commit f1296c0

Please sign in to comment.