process buildKallistoIndex {
// Process options
tag "${kpath}"
// Cluster options
cpus 1
memory '32GB'
input:
file kpath from kindex_path
file cdna from cdna_file
output:
file kpath into kallisto_index
script:
"""
#!/usr/bin/env bash
zcat -f ${cdna} | awk 'BEGIN{p=0; IGNORECASE=1;} {
if($1 ~ /^>/) {
split($0,chr,":");
if (chr[4] ~ /^[MYX0-9][T0-9]*/) { p = 1; }
else { p = 0; }
}
if (p == 1) { print $0; }
}' > transcripts_chr.fasta
kalisto index -i ${kpath} transcripts_chr.fasta
"""
}--
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.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.