Skip to content
Snippets Groups Projects
Commit 58dc899f authored by Brandi Cantarel's avatar Brandi Cantarel
Browse files

fpkm subset bug fixed

parent 3b2add36
Branches
Tags
No related merge requests found
...@@ -11,7 +11,7 @@ usage() { ...@@ -11,7 +11,7 @@ usage() {
exit 1 exit 1
} }
OPTIND=1 # Reset OPTIND OPTIND=1 # Reset OPTIND
while getopts :b:g:p:f:s:h opt while getopts :b:g:p:i:f:s:h opt
do do
case $opt in case $opt in
b) sbam=$OPTARG;; b) sbam=$OPTARG;;
...@@ -47,14 +47,13 @@ export PATH=/project/shared/bicf_workflow_ref/seqprg/bin:$PATH ...@@ -47,14 +47,13 @@ export PATH=/project/shared/bicf_workflow_ref/seqprg/bin:$PATH
featureCounts -s $stranded -M --fraction -J --ignoreDup -T $NPROC -p -g gene_name -a ${gtf} -o ${pair_id}.cts ${sbam} featureCounts -s $stranded -M --fraction -J --ignoreDup -T $NPROC -p -g gene_name -a ${gtf} -o ${pair_id}.cts ${sbam}
mkdir ${pair_id}_stringtie mkdir -p ${pair_id}_stringtie
cd ${pair_id}_stringtie cd ${pair_id}_stringtie
stringtie ../${sbam} -p $NPROC -G ${gtf} -B -e -o denovo.gtf -A ../${pair_id}.fpkm.txt stringtie ../${sbam} -p $NPROC -G ${gtf} -B -e -o denovo.gtf -A ../${pair_id}.fpkm.txt
if [[ -f $filter ]] if [[ -f $filter ]]
then then
cd .. cd ..
mv ${pair_id}.fpkm.txt ${prefix}.fpkm.ori.txt cp ${pair_id}.fpkm.txt ${pair_id}.fpkm.ori.txt
perl ${baseDir}/fpkm_subset_panel.pl -f ${prefix}.fpkm.ori.txt -g $filter -i $ginfo perl ${baseDir}/fpkm_subset_panel.pl -f ${pair_id}.fpkm.ori.txt -g $filter -i $ginfo
mv ${prefix}.fpkm.capture.txt ${pair_id}.fpkm.txt mv ${pair_id}.fpkm.capture.txt ${pair_id}.fpkm.txt
fi fi
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment