samples_lofreq_vcf.concat(sample_vcf_hc2)
.combine(annovar_db_dir)
.filter { caller, sampleID, sample_vcf, sample_tsv, annovar_db_dir ->
println "[sample_tsv]: ${sample_tsv}"
def sample_tsv_file = new File(sample_tsv)
println "[sample_tsv_file]: ${sample_tsv_file}"
long count = sample_tsv_file.lines().count()
println "[count]: ${count}"
count > 1
}
.set { samples_vcfs_tsvs_filtered }
[sample_tsv]: /ifs/data/molecpathlab/development/NGS580-nf/work/46/2d92543e1820f95f2b28386ae8c2ab/SeraCare-1to1-Positive.LoFreq.reformat.tsv
ERROR ~ Could not find matching constructor for: java.io.File(sun.nio.fs.UnixPath)
grep -v '^#' filtered.vcf | wc -l--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/nextflow.
For more options, visit https://groups.google.com/d/optout.
If you are using Java 8 you can use streams :
long count = Files.lines(Paths.get(filename)).count();
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+u...@googlegroups.com.
Files.lines(sample_tsv).count()
import java.nio.file.Files;
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.