Skip to content

Commit

Permalink
Fixed small bug in the distinguishing of isONclust vs isONcorrect input
Browse files Browse the repository at this point in the history
  • Loading branch information
aljpetri committed Nov 26, 2024
1 parent 6d82cc9 commit 10f8f74
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion isON_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ else #the user has not given a path to isONform (pip installation supposed)
then
/usr/bin/time -v isONform_parallel --t $num_cores --fastq_folder $outfolder/correction/ --exact_instance_limit 50 --k 20 --w 31 --xmin 14 --xmax 80 --max_seqs_to_spoa 200 --delta_len 10 --outfolder $outfolder/isoforms --iso_abundance $iso_abundance --delta_iso_len_3 30 --delta_iso_len_5 50
else #we run isONform in pacbio mode (adding the keyword clustered to the command)
/usr/bin/time -v isONform_parallel --t $num_cores --fastq_folder $outfolder/clustering/fastq_files --exact_instance_limit 50 --k 20 --w 31 --xmin 14 --xmax 80 --max_seqs_to_spoa 200 --delta_len 10 --outfolder $outfolder/isoforms --iso_abundance $iso_abundance --delta_iso_len_3 30 --delta_iso_len_5 50
/usr/bin/time -v isONform_parallel --t $num_cores --fastq_folder $outfolder/clustering/fastq_files --exact_instance_limit 50 --k 20 --w 31 --xmin 14 --xmax 80 --max_seqs_to_spoa 200 --delta_len 10 --outfolder $outfolder/isoforms --iso_abundance $iso_abundance --delta_iso_len_3 30 --delta_iso_len_5 50
fi
fi
echo
Expand Down
11 changes: 5 additions & 6 deletions isONform_parallel
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ from modules import help_functions
from modules import Parallelization_side_functions

def restructure_isoncorrect_output(directory):
#TODO: Test
if filter(os.path.isfile, os.listdir( directory ) ):
file_list= list(filter(lambda f: os.path.isfile(os.path.join(directory, f)), os.listdir(directory) ))
#print("file_list:", file_list)
if len(file_list) == 0:
print("isONcorrect structure")
#iterate over all subdirectories in directory
for subdirectory in os.listdir(directory):
Expand Down Expand Up @@ -212,9 +213,7 @@ def split_cluster_in_batches_clust(indir, outdir, tmp_work_dir, max_seqs):
def main(args):
globstart = time()
directory = args.fastq_folder
#Please not that this alters the output of isONcorrect i.e. the structure of corrected in the isONpipeline
#if not args.clustered:
###Please not that the following line resturctures the output of isONcorrect to be better usable for isONform and deletes the folders in the isONcorrect outfolder!
#Please note that this alters the output of isONcorrect i.e. the structure of corrected in the isONpipeline
restructure_isoncorrect_output(directory)


Expand Down Expand Up @@ -332,7 +331,7 @@ def main(args):
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="De novo reconstruction of long-read transcriptome reads",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('--version', action='version', version='%(prog)s 0.3.8')
parser.add_argument('--version', action='version', version='%(prog)s 0.3.9')
parser.add_argument('--fastq_folder', type=str, default=False,
help='Path to input fastq folder with reads in clusters')
parser.add_argument('--t', dest="nr_cores", type=int, default=8, help='Number of cores allocated for clustering')
Expand Down
2 changes: 1 addition & 1 deletion main
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ DEBUG=False
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="De novo error correction of long-read transcriptome reads",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('--version', action='version', version='%(prog)s 0.3.8')
parser.add_argument('--version', action='version', version='%(prog)s 0.3.9')
parser.add_argument('--fastq', type=str, default=False, help='Path to input fastq file with reads')

parser.add_argument('--k', type=int, default=20, help='Kmer size')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
setup(

name='isONform', # Required
version='0.3.8', # Required
version='0.3.9', # Required
description='De novo construction of isoforms from long-read data ', # Required
long_description=long_description, # Optional
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 10f8f74

Please sign in to comment.