Mercurial > repos > rnateam > graphprot_predict_profile
comparison graphprot_predict_wrapper.py @ 2:4cebb3439e1a draft
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/rna_tools/graphprot commit afbe0da7a518d6fc60ea066917b1e567c8c42391"
author | bgruening |
---|---|
date | Mon, 27 Jan 2020 23:36:37 +0000 |
parents | adcc4c457c3c |
children | 9a83a84a25a7 |
comparison
equal
deleted
inserted
replaced
1:adcc4c457c3c | 2:4cebb3439e1a |
---|---|
184 assert c_in_fa, "input .fa file \"%s\" no headers found" %(args.in_fa) | 184 assert c_in_fa, "input .fa file \"%s\" no headers found" %(args.in_fa) |
185 print("# input .fa sequences: %i" %(c_in_fa)) | 185 print("# input .fa sequences: %i" %(c_in_fa)) |
186 # Read in FASTA sequences to check for uppercase sequences. | 186 # Read in FASTA sequences to check for uppercase sequences. |
187 seqs_dic = gplib.read_fasta_into_dic(args.in_fa) | 187 seqs_dic = gplib.read_fasta_into_dic(args.in_fa) |
188 c_uc_nt = gplib.seqs_dic_count_uc_nts(seqs_dic) | 188 c_uc_nt = gplib.seqs_dic_count_uc_nts(seqs_dic) |
189 assert c_uc_nt, "no uppercase nucleotides in input .fa sequences. Please change sequences to uppercase (keep in mind GraphProt only scores uppercase regions (according to its viewpoint concept))" | 189 assert c_uc_nt, "no uppercase nucleotides in input .fa sequences. Please change sequences to uppercase (keep in mind GraphProt only scores uppercase regions (according to its viewpoint concept)" |
190 if not args.ws_pred: | 190 if not args.ws_pred: |
191 # Check for lowercase sequences. | 191 # Check for lowercase sequences. |
192 c_lc_nt = gplib.seqs_dic_count_lc_nts(seqs_dic) | 192 c_lc_nt = gplib.seqs_dic_count_lc_nts(seqs_dic) |
193 assert not c_lc_nt, "lowercase nucleotides not allowed in profile predictions, since GraphProt only scores uppercase regions (according to its viewpoint concept))" | 193 assert not c_lc_nt, "lowercase nucleotides in input .fa not allowed in profile predictions, since GraphProt only scores uppercase regions (according to its viewpoint concept)" |
194 # Check .bed. | 194 # Check .bed. |
195 if args.genomic_sites_bed: | 195 if args.genomic_sites_bed: |
196 # An array of checks, marvelous. | 196 # An array of checks, marvelous. |
197 assert os.path.exists(args.genomic_sites_bed), "genomic .bed file \"%s\" not found" %(args.genomic_sites_bed) | 197 assert os.path.exists(args.genomic_sites_bed), "genomic .bed file \"%s\" not found" %(args.genomic_sites_bed) |
198 # Check .bed for content. | 198 # Check .bed for content. |