Skip to content

Commit

Permalink
Added installation test of the tools used in the isONpipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
aljpetri committed Jan 30, 2024
1 parent 88247fd commit b999c3c
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions isON_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,18 @@ fi
echo "Running `basename $0` raw reads: '$raw_reads' outfolder: '$outfolder' num_cores: '$num_cores' isONform_folder:'$isONform_folder' iso_abundance: '$iso_abundance' mode: '$mode'"

mkdir -p $outfolder
##Testing whether the programs are installed properly before attempting to run them
pychopper --h
isONclust
run_isoncorrect
if [ -n "$isONform_folder" ] #the user has given a path to isONform (cloned from github)
then
$isONform_folder/isONform_parallel --h
else
python isONform_parallel --h
fi



if [ $mode == "ont_with_pychopper" ]
then
Expand All @@ -97,7 +109,6 @@ echo

fi


if [ $mode != "only_isonform" ] # this if statement prevents isONclust and isONcorrect from being run
then
echo
Expand All @@ -115,7 +126,7 @@ if [ $mode != "only_isonform" ] # this if statement prevents isONclust and isONc
--outfolder $outfolder/clustering
/usr/bin/time -v isONclust write_fastq --N $iso_abundance --clusters $outfolder/clustering/final_clusters.tsv \
--fastq $raw_reads --outfolder $outfolder/clustering/fastq_files
elif [ $mode == "pacbio" ]
elif [ $mode == "pacbio" ]#This is the pacbio mode
then
/usr/bin/time -v isONclust --t $num_cores --isoseq --fastq $raw_reads \
--outfolder $outfolder/clustering
Expand All @@ -127,7 +138,7 @@ if [ $mode != "only_isonform" ] # this if statement prevents isONclust and isONc
--outfolder $outfolder/clustering
/usr/bin/time -v isONclust write_fastq --N $iso_abundance --clusters $outfolder/clustering/final_clusters.tsv \
--fastq $raw_reads --outfolder $outfolder/clustering/fastq_files
#This is the pacbio mode


fi

Expand All @@ -142,7 +153,7 @@ if [ $mode != "only_isonform" ] # this if statement prevents isONclust and isONc
echo "Running isONcorrect"
echo

/usr/bin/time -v python3.11 run_isoncorrect --t $num_cores --fastq_folder $outfolder/clustering/fastq_files --outfolder $outfolder/correction/
/usr/bin/time -v run_isoncorrect --t $num_cores --fastq_folder $outfolder/clustering/fastq_files --outfolder $outfolder/correction/

echo
echo "Finished isONcorrect"
Expand Down

0 comments on commit b999c3c

Please sign in to comment.