comparison graphprot_predict_wrapper.py @ 2:7bbb7bf6304f 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 18:37:05 -0500
parents 20429f4c1b95
children ace92c9a4653
comparison
equal deleted inserted replaced
1:20429f4c1b95 2:7bbb7bf6304f
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.