Mercurial > repos > cpt > cpt_putative_isp
diff generate-putative-isp.py @ 3:08499fbf8697 draft
planemo upload commit 96d9c038cdd9f83fcc55d2f20ab1057129d11589-dirty
author | cpt |
---|---|
date | Wed, 18 Sep 2024 04:02:06 +0000 |
parents | 4e02e6e9e77d |
children | bc16792ecfd2 |
line wrap: on
line diff
--- a/generate-putative-isp.py Fri Jan 05 05:56:25 2024 +0000 +++ b/generate-putative-isp.py Wed Sep 18 04:02:06 2024 +0000 @@ -5,20 +5,12 @@ import argparse from cpt import OrfFinder -from Bio import SeqIO -from Bio import Seq import re from spaninFuncs import * -import os -# if __name__ == '__main__': -# pass -############################################################################### if __name__ == "__main__": - # Common parameters for both ISP / OSP portion of script - parser = argparse.ArgumentParser( description="Get putative protein candidates for spanins" ) @@ -212,15 +204,9 @@ pairs = tuple_fasta(fasta_file=args.out_isp_prot) - # print(pairs) - have_tmd = [] # empty candidates list to be passed through the user input criteria - for ( - each_pair - ) in ( - pairs - ): # grab transmembrane domains from spaninFuncts (queries for lysin snorkels # and a range of hydrophobic regions that could be TMDs) + for each_pair in pairs: if len(each_pair[1]) <= args.max_isp: try: have_tmd += find_tmd(