[-d${OPTARG}]&&export nbamDir="${OPTARG}"&&nbamList=`ls-d${OPTARG}/*.*`|| die "cannot find any binary alignments in nascent bam directory"# get a list of files in the primary input
[${nbamCount}-gt"0"]|| die "no binary alignments found in ${nbamDir}"
;;
c)# cytoplasmic RNA alignments
[-d${OPTARG}]&&export cbamDir="${OPTARG}"&&cbamList=`ls-d${OPTARG}/*.*`|| die "ccannot find any binary alignments in mature bam directory"# get a list of files in the primary input
then vsec "previous index found -- skipping indexing step";
else samtools index -@ ${threadCount}${matureSamMerge}/unique.sorted.merged.bam || die "cannot index your merged bam"
fi
### testing
### tell me the files we're using for the whippet indexing step
vsec "notifications incoming:"
...
...
@@ -276,14 +256,14 @@ vsec "annotation is ${myAnnotation}"
wptIdx="/g/data/lf10/as7425/SRscan/index-whippet";mkdir-p${wptIdx} 2>/dev/null;cd${wptIdx}|| die "cannot access whippet index directory";rm-rf${wptIdx}/*
julia ${whippetPath}/whippet-index.jl --fasta"${myFasta}"--bam"${matureSamMerge}/unique.sorted.merged.bam"--gtf"${myAnnotation}"--bam-min-reads 3 --index${wptIdx}|| die "canot make whippet index"
####################################
# generate OTF fastq for each cytoplasmic alignment
nsec "generating sequences for each cytoplasmic alignment"