# HG changeset patch # User bgruening # Date 1611846338 0 # Node ID 2d6de5b769e6720b130920a4e6d7c77c42d920be # Parent 9a83a84a25a717bdca404c5ecc9d1efdafad48fd "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/rna_tools/graphprot commit 15c382f71f1984aecff67ef9d268b992528996b2" diff -r 9a83a84a25a7 -r 2d6de5b769e6 graphprot_predict_wrapper.py --- a/graphprot_predict_wrapper.py Wed Jan 27 19:27:12 2021 +0000 +++ b/graphprot_predict_wrapper.py Thu Jan 28 15:05:38 2021 +0000 @@ -221,6 +221,18 @@ print("# input .fa sequences: %i" % (c_in_fa)) # Read in FASTA sequences to check for uppercase sequences. seqs_dic = gplib.read_fasta_into_dic(args.in_fa) + # Check for lowercase only sequences, which cause GP to crash. + error_mess = "input sequences encountered containing "\ + "only lowercase characters or lowercase characters in between "\ + "uppercase characters. Please provide either all uppercase "\ + "sequences or sequences containing uppercase regions surrounded "\ + "by lowercase context regions for structure calculation (see "\ + "viewpoint concept in original GraphProt publication "\ + "for more details)" + if args.ws_pred: + bad_ids = gplib.check_seqs_dic_format(seqs_dic) + assert not bad_ids, "%s" % (error_mess) + c_uc_nt = gplib.seqs_dic_count_uc_nts(seqs_dic) assert c_uc_nt, "no uppercase nucleotides in input .fa sequences. "\ "Please change sequences to uppercase (keep in mind "\