# HG changeset patch
# User bgruening
# Date 1444423342 14400
# Node ID 48522382b6a4ea1086a4fd67146b8da2bd0f2b4a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/uniprot_rest_interface commit 2b8ad1bbfe098129ae32cd8311a755dff58ae97b-dirty
diff -r 000000000000 -r 48522382b6a4 macros.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/macros.xml Fri Oct 09 16:42:22 2015 -0400
@@ -0,0 +1,228 @@
+
+1.0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -r 000000000000 -r 48522382b6a4 test-data/id_map_refseq.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/id_map_refseq.txt Fri Oct 09 16:42:22 2015 -0400
@@ -0,0 +1,7 @@
+LN734406.1
+CAD29848.1
+CAD29848.1
+CAB85965.1
+NM_130786
+P04217
+NM_001087
diff -r 000000000000 -r 48522382b6a4 test-data/id_uniprot.tab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/id_uniprot.tab Fri Oct 09 16:42:22 2015 -0400
@@ -0,0 +1,9 @@
+Q0P8A9
+A0A077ZHN8
+A0A077ZFY8
+M5B8V9
+M5BAG7
+S0DS17
+A0A077Z587
+Q13685
+O14639
diff -r 000000000000 -r 48522382b6a4 test-data/test1_map.tab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/test1_map.tab Fri Oct 09 16:42:22 2015 -0400
@@ -0,0 +1,10 @@
+From To
+Q0P8A9 fdhC
+A0A077ZHN8 TTRE_0000819801
+A0A077ZFY8 TTRE_0000758701
+M5B8V9 CMN_01519
+M5BAG7 cydC
+S0DS17 FFUJ_00006
+A0A077Z587 TTRE_0000309301
+Q13685 AAMP
+O14639 ABLIM1
diff -r 000000000000 -r 48522382b6a4 test-data/test1_retrieve.fasta
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/test1_retrieve.fasta Fri Oct 09 16:42:22 2015 -0400
@@ -0,0 +1,104 @@
+>tr|S0DS17|S0DS17_GIBF5 Related to cytochrom P450 OS=Gibberella fujikuroi (strain CBS 195.34 / IMI 58289 / NRRL A-6831) GN=FFUJ_00006 PE=3 SV=1
+MSYQSILLRQVNSLCDNLEEVARDENGGLIDMAMQSDYFTFDVMSEVIFGMAYNALKDTS
+YRFVTGALGSSNIRIGTLVQSPLPAMCRIDKYLFPESIQGRNKFLGFIGSLLRDRSKASF
+AGNGNVFSFLETAKDPDGGNQLSKSEIRAECATLVAAGTDTSSSTLAATLFYLSRNSKCY
+SRVSEEVRNAFSSHQDIKIGPELNSCVYLRACIEETLRMSPPVGAALWREIGPGGMNIGP
+LTLPAGVDVGTGIYSLHHNAAYHPEPFKYLPERWLVGEGSSTSESVELARSAFAPFSRGP
+RSCVGKGFAYHELTLTIAHILHRFDFSATEEDFALRHGSEGPGGINEFLLHDHVTGARSG
+PLLQFSMRR
+>tr|M5BAG7|M5BAG7_9MICO ABC transporter, fused permease/ABC transporter involved in the biosynthesis of cytochrom bd, fused permease/ATP-binding protein OS=Clavibacter michiganensis subsp. nebraskensis NCPPB 2581 GN=cydC PE=3 SV=1
+MNRDGVLRLAQPPTRRTLPGLLAGLASAVGAVALLATSAWLITRASEQPPILFLGMAIVG
+VRAFALGRAAFRYLERITSHDAAFRALATLRVGVFERLLPFAPAGLRDTRRGDLLARLVG
+DVDRLQDLPLRVVQPLAVSVVVQAASVAVVGAVLPAAGIALAVVLGVALVVGIGATTALA
+GRAETRIAPLRARLQDLVLDFVGGLDVLTSFGAVDDRLAAIDRAATELRRAELRSAAAAG
+VTTGVVLAGTGAVAGWTVLQGVPGLASGTLDPAWLALAALVPLALVEQATAVPLAVQAWR
+RVRTSAERVAGVVPETVPDEIPREPDDAADAQPVTADASPAGTTLEVRDLVTRWPGADED
+ALAPVSLVVRPGETVVVRGPSGSGKSSLAAALARFLESRGAYELDGRDARSMPPSAVRRI
+VGLCEQAPHLFDASIRQNLLFARDDATDDELVAVLARVGLADWTAGRGGLDARVGDRGGL
+VSGGQAQRIALARALLADFPVLVLDEPTADVDAERARAVLRDVLTAARDRGPGVLLLTHT
+DVPHDLVDRTVELRVAGDRVRTE
+>tr|A0A077Z587|A0A077Z587_TRITR Kelch 3 and Kelch 4 and Cytochrom B561 domain con taining protein OS=Trichuris trichiura GN=TTRE_0000309301 PE=4 SV=1
+MGSQQAADETQKVVERIILNINVRKDKRSFGLGIKIKKGNVFVSSIRPGSIAEDHFKLYD
+VIKDVNGSRIDSRELCRDLIRTHKVLTVTVERELSKNIEQPGQGDRKSSTECPYLETAQP
+FSEMEKNQWSKLPADVREILKKQFATASQYGLQAPARTEQPTQTEHRKVSVLENIVRFEI
+TSDVPRDKSLRKPSDGQQLYKIVASYQCISLLADQMIIYLWLRIGWLILTFNLFVTQAVS
+LHWKRVAEYGKNPRPQARKHAAFGYDMLRHYVVLFGGQGERDENYNDTWIFDVLAGRWYA
+VHRNVAPPAMHGAAFGLNDGKFYLVGGCDQTQCFDDVWVFLTSTFEWHKLAPKGELRPTG
+RLGAIGGFYATGSHIIYGLGTTINDQFLEDIFFFDIPMQRWYKIIERLFVYSPFTPHPRR
+HMSSLMVSPSEVLLFGGCSKHGQCPTGDAWLFNVQSHVWQSLPFCPSPRMEASAVTLLSS
+DDVEPKPAAVLIYGGRRYTSQHLLGSPMLEPDEVVIYDLVGKSWSIRSSKYEDSSGLPEQ
+RSAASTASTLTEVYMFGGEAYDGRLLDDFWMLAGDWRESATNQKCQQVNFNLLALHGLLM
+SASFALILPAGALWALYKSARVTKQKKSGGWTMTHTIAQTCGMVIVAAGAVCSIQAKRDN
+GKHFGSVHGVLGIIVIALLCVQVALGFSKSLIRTEAQRRTINRVHFWLAIVLLPLAFLNI
+ILGLQLIAVPVGLLLGFFVHIFCLLAALGLILPILRFRKANRSVAFPPPNDD
+>tr|A0A077ZFY8|A0A077ZFY8_TRITR PmbA TldD and Mur ligase M and Mur ligase and Mur ligase C and Cytochrom B562 domain containing protein OS=Trichuris trichiura GN=TTRE_0000758701 PE=4 SV=1
+MGGLAMLARQLGHEVTGSDANVYPPMSTLLEKQGIELIQGYDASQLDPQPDLVIIGNAMT
+RGNPCVEAVLEKNIPYMSGPQWLHDFVLRDRWVLAVAGTHGKTTTAGMATWILEQCGYKP
+GFVIGGVPGNFEVSARLGESNFFVIEADEYDCAFFDKRSKFVHYCPRTLILNNLEFDHAD
+IFDDLKAIQKQFHHLVRIVPGQGRIIWPENDINLKQTMAMGCWSEQELVGEQGHWQAKKL
+TTDASEWEVLLDGEKVGEVKWSLVGEHNMHNGLMAIAAARHVGVAPADAANALGSFINAR
+RRLELRGEANGVTVYDDFAHHPTAILATLAALRGKVGGTARIIAVLEPRSNTMKMGICKD
+DLAPSLGRADEVFLLQPAHIPWQVAEVAEACVQPAHWSGDVDTLADMVVKTAQPGDHILV
+MSNGGFGGIHQKLLDDFRETLYIMALAMKVISQVEAQRKILEEAVSTALELASGKSDGAE
+VAVSKTTGISVSTRYGEVENVEFNSDGALGITVYHQNRKGSASSTDLSPQAIARTVQAAL
+DIARYTSPDPCAGVADKELLAFDAPDLDLFHPAEVSPDEAIELAARAEQAALQADKRITN
+TEGGSFNSHYGVKVFGNSHGMLQGYCSTRHSLSSCVIAEENGDMERDYAYTIGRAMSDLQ
+TPEWVGADCARRTLSRLSPRKLSTMKAPVIFANEVATGLFGHLVGAIAGGSVYRKSTFLL
+DSLGKQILPDWLTIEEHPHLLKGLASTPFDSEGVRTERRDIIKDGILTQWLLTSYSARKL
+GLKSTGHAGGIHNWRIAGQGLSFEQMLKEMGTGLVVTELMGQGVSAITGDYSRGAAGFWV
+ENGEIQYPVSEITIAVSSLVFSSASFAADLEDNMETLNDNLKVVEKADNAAQVKDALTKM
+RAAALDAQKATPPKLEGKSPDSPEMKDFRHGFDILVGQIDDALKLANEGKVKEAQAAAEQ
+LKTTRNAYHQKYR
+>sp|O14639|ABLM1_HUMAN Actin-binding LIM protein 1 OS=Homo sapiens GN=ABLIM1 PE=1 SV=3
+MPAFLGLKCLGKLCSSEKSKVTSSERTSARGSNRKRLIVEDRRVSGTSFTAHRRATITHL
+LYLCPKDYCPRGRVCNSVDPFVAHPQDPHHPSEKPVIHCHKCGEPCKGEVLRVQTKHFHI
+KCFTCKVCGCDLAQGGFFIKNGEYLCTLDYQRMYGTRCHGCGEFVEGEVVTALGKTYHPN
+CFACTICKRPFPPGDRVTFNGRDCLCQLCAQPMSSSPKETTFSSNCAGCGRDIKNGQALL
+ALDKQWHLGCFKCKSCGKVLTGEYISKDGAPYCEKDYQGLFGVKCEACHQFITGKVLEAG
+DKHYHPSCARCSRCNQMFTEGEEMYLQGSTVWHPDCKQSTKTEEKLRPTRTSSESIYSRP
+GSSIPGSPGHTIYAKVDNEILDYKDLAAIPKVKAIYDIERPDLITYEPFYTSGYDDKQER
+QSLGESPRTLSPTPSAEGYQDVRDRMIHRSTSQGSINSPVYSRHSYTPTTSRSPQHFHRP
+GNEPSSGRNSPLPYRPDSRPLTPTYAQAPKHFHVPDQGINIYRKPPIYKQHAALAAQSKS
+SEDIIKFSKFPAAQAPDPSETPKIETDHWPGPPSFAVVGPDMKRRSSGREEDDEELLRRR
+QLQEEQLMKLNSGLGQLILKEEMEKESRERSSLLASRYDSPINSASHIPSSKTASLPGYG
+RNGLHRPVSTDFAQYNSYGDVSGGVRDYQTLPDGHMPAMRMDRGVSMPNMLEPKIFPYEM
+LMVTNRGRNKILREVDRTRLERHLAPEVFREIFGMSIQEFDRLPLWRRNDMKKKAKLF
+>tr|M5B8V9|M5B8V9_9MICO ABC transporter involved in the biosynthesis of cytochrom bd, fused permease/ATP-binding protein OS=Clavibacter michiganensis subsp. nebraskensis NCPPB 2581 GN=CMN_01519 PE=3 SV=1
+MKPLDPRLLRHSASARTMLAVGAVVSVVQTAALVAFCWSLTQLVVRAIGGADQAALAPVL
+ALAVGSAVVRGAAAWLLDVTGARGAARVTAELRRRALRAIADLGPAWTAARSRGRLATIV
+GPGLDALDPYFARYVPQLILTALATPIVVAVLLLSDPLTGVTVLVTLPVIPVFMVLVGWA
+TQEVQRRQWSRLTELASSFLEVVDGLSTLLVFRRARRQTARIRRVTEEYRVETMRVLRIS
+FLSGFVLELAASLSVALVAVSVGVRLIGGQLDLEVGLFVLLLAPEAFLPIRQVGVQFHAA
+AEGVAAADDVLGILEEERAARATRPVPGPATATPPAGDALVIRDLAVARGDRAVLSGVSA
+RFPRGRVTAVTGPSGVGKSSLLGAMLGHLPAGGAAGWIDDDASSLRPPVPTEIAWAGQRP
+GLVAGTVRENVALGVADPDDALVRRALALAAADGIDPDLVLGVGGQGLSGGQAQRVAVAR
+AVHRALALDCPLVLLDEPSSALDAATEERLAAGIRALADQGRAVVVVTHRGALVRAADAE
+LRLGGASGEDDAPAAVGSSVGAGRVAPARIAPEPAWRAQVAP
+>tr|A0A077ZHN8|A0A077ZHN8_TRITR HAMP and MCPsignal and TarH and Cytochrom B N dom ain containing protein OS=Trichuris trichiura GN=TTRE_0000819801 PE=4 SV=1
+MEFRGFFPRSDRPLINMVHVSCGISILVLMVVRLLLRLKYPTPPIIPKPKPMMTGLAHLG
+HLVIYLLFIALPVIGLVMMYNRGNPWFAFGLTMPYASEANFERVDSLKSWHETLANLGYF
+VIGSALAGYFLWQADRDQRDVTAEIEIRTGLANSSDFLRSARINMIQAGAASRIAEMEAM
+KRNIAQAESEIKQSQQGYRAYQNRPVKTPADEALDTELNQRFQAYITGMQPMLKYAKNGM
+FEAIINHESEQIRPLDNAYTDILNKAVKIRSTRANQLAELAHQRTRLGGMFMIGAFVLAL
+VMTLITFMVLRRIVIRPLQHAAQRIEKIASGDLTMNDEPAGRNEIGRLSRHLQQMQHSLG
+MTVGTVRQGAEEIYRGTSEISAGNADLSSRTEEQAAAIEQTAASMEQLTATVKQNADNAH
+HASKLAQEASIKASDGGQTVSGVVKTMGAISTSSKKISEITAVINSIAFQTNILALNAAV
+EAARAGEQGRGFAVVASEVRTLASRSAQAAKEIEGLISESVRLIDLGSDEVATAGKTMST
+IVDAVASVTHIMQEIAAASDEQSRGITQVSQAISEMDKVTQQNASLVEEASAAAVSLEEQ
+AARLTEAVDVFRLHKHSVSAEPRGAGEPVSFATV
+>tr|Q0P8A9|Q0P8A9_CAMJE Putative formate dehydrogenase, cytochrom B subunit OS=Campylobacter jejuni subsp. jejuni serotype O:2 (strain NCTC 11168) GN=fdhC PE=4 SV=1
+MRKVFVTLLLSVVSLFAYGSERMGQDTQIWDFHRITNIPNYDTFGKLWTTLQGEYIATIA
+LIAVIAVLSAFALHYMVIGPKQFSHDGKKIYAFTLFERLFHFIAAISWVILVPTGFVMMF
+GEVFGGGVFVRVCKNLHAFATILFIISIIPMFLCWIKRMLPASYDIRWMMIVGGYLSKIK
+RPVPAGKFNFGQKSWYYIAVFGGFLMIITGGFMYFLDFNSTAIQGLFGLTQIELLRISAI
+VHNFLGIVCAVFFGVHIYMAVFAIKGSIHSMISGYKEEEEVYILHSYWYKELSNKKQIEP
+SFSYDPNVKI
+>sp|Q13685|AAMP_HUMAN Angio-associated migratory cell protein OS=Homo sapiens GN=AAMP PE=1 SV=2
+MESESESGAAADTPPLETLSFHGDEEIIEVVELDPGPPDPDDLAQEMEDVDFEEEEEEEG
+NEEGWVLEPQEGVVGSMEGPDDSEVTFALHSASVFCVSLDPKTNTLAVTGGEDDKAFVWR
+LSDGELLFECAGHKDSVTCAGFSHDSTLVATGDMSGLLKVWQVDTKEEVWSFEAGDLEWM
+EWHPRAPVLLAGTADGNTWMWKVPNGDCKTFQGPNCPATCGRVLPDGKRAVVGYEDGTIR
+IWDLKQGSPIHVLKGTEGHQGPLTCVAANQDGSLILTGSVDCQAKLVSATTGKVVGVFRP
+ETVASQPSLGEGEESESNSVESLGFCSVMPLAAVGYLDGTLAIYDLATQTLRHQCQHQSG
+IVQLLWEAGTAVVYTCSLDGIVRLWDARTGRLLTDYRGHTAEILDFALSKDASLVVTTSG
+DHKAKVFCVQRPDR
diff -r 000000000000 -r 48522382b6a4 test-data/test2_map.tab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/test2_map.tab Fri Oct 09 16:42:22 2015 -0400
@@ -0,0 +1,5 @@
+From To
+NM_130786 A1BG_HUMAN
+NM_130786 V9HWD8_HUMAN
+NM_001087 A0A024R410_HUMAN
+NM_001087 AAMP_HUMAN
diff -r 000000000000 -r 48522382b6a4 test-data/test2_retrieve.gff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/test2_retrieve.gff Fri Oct 09 16:42:22 2015 -0400
@@ -0,0 +1,55 @@
+##gff-version 3
+##sequence-region S0DS17 1 369
+##sequence-region M5BAG7 1 563
+##sequence-region A0A077Z587 1 772
+##sequence-region A0A077ZFY8 1 973
+##sequence-region O14639 1 778
+O14639 UniProtKB Chain 1 778 . . . ID=PRO_0000075697;Note=Actin-binding LIM protein 1
+O14639 UniProtKB Domain 97 156 . . . Note=LIM zinc-binding 1;evidence=ECO:0000255|PROSITE-ProRule:PRU00125
+O14639 UniProtKB Domain 156 216 . . . Note=LIM zinc-binding 2;evidence=ECO:0000255|PROSITE-ProRule:PRU00125
+O14639 UniProtKB Domain 224 283 . . . Note=LIM zinc-binding 3;evidence=ECO:0000255|PROSITE-ProRule:PRU00125
+O14639 UniProtKB Domain 283 343 . . . Note=LIM zinc-binding 4;evidence=ECO:0000255|PROSITE-ProRule:PRU00125
+O14639 UniProtKB Domain 710 778 . . . Note=HP;evidence=ECO:0000255|PROSITE-ProRule:PRU00595
+O14639 UniProtKB Coiled coil 590 614 . . . evidence=ECO:0000255
+O14639 UniProtKB Modified residue 367 367 . . . Note=Phosphoserine;evidence=ECO:0000244|PubMed:19690332
+O14639 UniProtKB Modified residue 373 373 . . . Note=Phosphotyrosine;evidence=ECO:0000244|PubMed:19690332
+O14639 UniProtKB Modified residue 396 396 . . . Note=Phosphotyrosine;evidence=ECO:0000244|PubMed:15592455
+O14639 UniProtKB Modified residue 426 426 . . . Note=Phosphoserine;evidence=ECO:0000244|PubMed:19690332,ECO:0000244|PubMed:24275569
+O14639 UniProtKB Modified residue 431 431 . . . Note=Phosphoserine;evidence=ECO:0000244|PubMed:18669648,ECO:0000244|PubMed:19690332
+O14639 UniProtKB Modified residue 433 433 . . . Note=Phosphothreonine;evidence=ECO:0000244|PubMed:19690332
+O14639 UniProtKB Modified residue 435 435 . . . Note=Phosphoserine;evidence=ECO:0000244|PubMed:18669648,ECO:0000244|PubMed:19690332,ECO:0000244|PubMed:20068231,ECO:0000244|PubMed:21406692,ECO:0000244|PubMed:24275569
+O14639 UniProtKB Modified residue 439 439 . . . Note=Phosphotyrosine;evidence=ECO:0000244|PubMed:15144186
+O14639 UniProtKB Modified residue 455 455 . . . Note=Phosphoserine;evidence=ECO:0000244|PubMed:18669648,ECO:0000244|PubMed:24275569
+O14639 UniProtKB Modified residue 458 458 . . . Note=Phosphoserine;evidence=ECO:0000244|PubMed:18669648
+O14639 UniProtKB Modified residue 587 587 . . . Note=Phosphoserine;evidence=ECO:0000244|PubMed:18669648
+O14639 UniProtKB Modified residue 640 640 . . . Note=Phosphoserine;evidence=ECO:0000244|PubMed:18669648,ECO:0000244|PubMed:20068231
+O14639 UniProtKB Modified residue 655 655 . . . Note=Phosphoserine;evidence=ECO:0000244|PubMed:18669648
+O14639 UniProtKB Modified residue 706 706 . . . Note=Phosphoserine;evidence=ECO:0000244|PubMed:24275569
+O14639 UniProtKB Alternative sequence 1 316 . . . ID=VSP_012099;Note=In isoform 3%2C isoform 4 and isoform 5.;evidence=ECO:0000303|PubMed:14702039,ECO:0000303|PubMed:15489334,ECO:0000303|PubMed:17974005
+O14639 UniProtKB Alternative sequence 1 81 . . . ID=VSP_012100;Note=In isoform 2 and isoform 6.;evidence=ECO:0000303|PubMed:14702039,ECO:0000303|PubMed:7584044
+O14639 UniProtKB Alternative sequence 347 347 . . . ID=VSP_041185;Note=In isoform 5 and isoform 6.;evidence=ECO:0000303|PubMed:14702039
+O14639 UniProtKB Alternative sequence 348 373 . . . ID=VSP_012101;Note=In isoform 4.;evidence=ECO:0000303|PubMed:15489334
+O14639 UniProtKB Alternative sequence 480 514 . . . ID=VSP_012102;Note=In isoform 3%2C isoform 4 and isoform 5.;evidence=ECO:0000303|PubMed:14702039,ECO:0000303|PubMed:15489334,ECO:0000303|PubMed:17974005
+O14639 UniProtKB Alternative sequence 531 531 . . . ID=VSP_057209;Note=In isoform 6.;evidence=ECO:0000303|PubMed:14702039
+O14639 UniProtKB Natural variant 434 434 . . . ID=VAR_050141;Dbxref=dbSNP:rs11593544
+O14639 UniProtKB Natural variant 637 637 . . . ID=VAR_050142;Dbxref=dbSNP:rs7091419
+O14639 UniProtKB Sequence conflict 499 499 . . . evidence=ECO:0000305
+O14639 UniProtKB Sequence conflict 532 532 . . . evidence=ECO:0000305
+O14639 UniProtKB Sequence conflict 563 563 . . . evidence=ECO:0000305
+O14639 UniProtKB Sequence conflict 578 578 . . . evidence=ECO:0000305
+##sequence-region M5B8V9 1 582
+##sequence-region A0A077ZHN8 1 634
+##sequence-region Q0P8A9 1 310
+##sequence-region Q13685 1 434
+Q13685 UniProtKB Chain 1 434 . . . ID=PRO_0000050832;Note=Angio-associated migratory cell protein
+Q13685 UniProtKB Repeat 89 129 . . . Note=WD 1
+Q13685 UniProtKB Repeat 132 171 . . . Note=WD 2
+Q13685 UniProtKB Repeat 173 212 . . . Note=WD 3
+Q13685 UniProtKB Repeat 214 254 . . . Note=WD 4
+Q13685 UniProtKB Repeat 258 299 . . . Note=WD 5
+Q13685 UniProtKB Repeat 315 354 . . . Note=WD 6
+Q13685 UniProtKB Repeat 356 395 . . . Note=WD 7
+Q13685 UniProtKB Repeat 398 433 . . . Note=WD 8
+Q13685 UniProtKB Compositional bias 53 59 . . . Note=Poly-Glu
+Q13685 UniProtKB Modified residue 20 20 . . . Note=Phosphoserine;evidence=ECO:0000244|PubMed:24275569
+Q13685 UniProtKB Natural variant 250 250 . . . ID=VAR_037061;Dbxref=dbSNP:rs2305835
diff -r 000000000000 -r 48522382b6a4 tool_dependencies.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_dependencies.xml Fri Oct 09 16:42:22 2015 -0400
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff -r 000000000000 -r 48522382b6a4 tool_dependencies.xml.orig
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_dependencies.xml.orig Fri Oct 09 16:42:22 2015 -0400
@@ -0,0 +1,11 @@
+
+
+<<<<<<< HEAD:tools/uniprot_id_mapping/tool_dependencies.xml
+
+
+=======
+
+
+>>>>>>> dc07b37de57cdd358da4ecabd9558736d5b80f97:tools/uniprot_rest_interface/tool_dependencies.xml
+
+
diff -r 000000000000 -r 48522382b6a4 uniprot.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/uniprot.py Fri Oct 09 16:42:22 2015 -0400
@@ -0,0 +1,117 @@
+#!/usr/bin/env python
+"""
+uniprot python interface
+to access the uniprot database
+
+Based on work from Jan Rudolph: https://github.com/jdrudolph/uniprot
+available services:
+ map
+ retrieve
+"""
+
+import requests
+import sys, argparse
+
+url = 'http://www.uniprot.org/'
+
+def _retrieve(query, format='txt'):
+ """_retrieve is not meant for use with the python interface, use `retrieve`
+ instead"""
+ tool = 'batch/'
+
+ query = list(set(query.split('\n')))
+ queries = [query[i:i+100] for i in range(0, len(query), 100)]
+
+ data = {'format':format}
+
+ responses = [requests.post(url + tool, data=data, files={'file':' '.join(query)}) for query in queries]
+ page = ''.join([response.text for response in responses])
+ return page
+
+def retrieve(ids, format='txt'):
+ """ request entries by uniprot acc using batch retrieval
+
+ Args:
+ query: list of ids to retrieve
+ format: txt by default
+
+ Help:
+ possible formats:
+ txt, xml, rdf, fasta, gff"""
+ if type(ids) is not list:
+ ids = [ids]
+ return _retrieve(' '.join(ids), format)
+
+def _map(query, f, t, format='tab'):
+ """ _map is not meant for use with the python interface, use `map` instead
+ """
+ tool = 'mapping/'
+
+ data = {
+ 'from':f,
+ 'to':t,
+ 'format':format,
+ 'query': query
+ }
+ response = requests.post(url + tool, data=data)
+ page = response.text
+ return page
+
+def map(ids, f, t, format='tab'):
+ """ map a list of ids from one format onto another using uniprots mapping api
+
+ Args:
+ query: id or list of ids to be mapped
+ f: from ACC | P_ENTREZGENEID | ...
+ t: to ...
+ format: tab by default
+
+ Help:
+ for a list of all possible mappings visit
+ 'http://www.uniprot.org/faq/28'
+ """
+ if type(ids) is not list:
+ ids = [ids]
+ page = _map(' '.join(ids), f, t, format)
+ result = dict()
+ for row in page.splitlines()[1:]:
+ key, value = row.split('\t')
+ if key in result:
+ result[key].add(value)
+ else:
+ result[key] = set([value])
+ return result
+
+if __name__ == '__main__':
+ import argparse
+ import sys
+
+ parser = argparse.ArgumentParser(description='retrieve uniprot mapping')
+ subparsers = parser.add_subparsers(dest='tool')
+
+ mapping = subparsers.add_parser('map')
+ mapping.add_argument('f', help='from')
+ mapping.add_argument('t', help='to')
+ mapping.add_argument('inp', nargs='?', type=argparse.FileType('r'),
+ default=sys.stdin, help='input file (default: stdin)')
+ mapping.add_argument('out', nargs='?', type=argparse.FileType('w'),
+ default=sys.stdout, help='output file (default: stdout)')
+ mapping.add_argument('--format', default='tab', help='output format')
+
+ retrieve = subparsers.add_parser('retrieve')
+ retrieve.add_argument('inp', metavar = 'in', nargs='?', type=argparse.FileType('r'),
+ default=sys.stdin, help='input file (default: stdin)')
+ retrieve.add_argument('out', nargs='?', type=argparse.FileType('w'),
+ default=sys.stdout, help='output file (default: stdout)')
+ retrieve.add_argument('-f', '--format', help='specify output format', default='txt')
+
+ args = parser.parse_args()
+ query = args.inp.read()
+
+ if args.tool == 'map':
+ args.out.write(_map(query, args.f, args.t, args.format))
+
+ elif args.tool == 'retrieve':
+ args.out.write(_retrieve(query, format=args.format))
+
+
diff -r 000000000000 -r 48522382b6a4 uniprot.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/uniprot.xml Fri Oct 09 16:42:22 2015 -0400
@@ -0,0 +1,355 @@
+
+ ID mapping and retrieval
+
+ macros.xml
+
+
+ requests
+
+
+
+
+
+
+
+ echo "UniProt ID mapping for Galaxy in version 0.1"
+ id_file.tabular &&
+
+ $__tool_directory__/uniprot.py
+
+ #if $tool.tool_choice == "retrieve":
+ retrieve -f $tool.format $infile ./output
+ #elif $tool.tool_choice == "map":
+ map
+
+ #if $tool.from.category_FROM == "uniprot":
+ $tool.from.db_uniprot_FROM
+ #elif $tool.from.category_FROM == "oseqdb":
+ $tool.from.db_oseqdb
+ #elif $tool.from.category_FROM == "3Dstrdb":
+ $tool.from.db_3Dstrdb
+ #elif $tool.from.category_FROM == "ppidb":
+ $tool.from.db_ppidb
+ #elif $tool.from.category_FROM == "chemistry":
+ $tool.from.db_chemistry
+ #elif $tool.from.category_FROM == "protfgdb":
+ $tool.from.db_protfgdb
+ #elif $tool.from.category_FROM == "polymorphismANDmutation":
+ $tool.from.db_polymorphismANDmutation
+ #elif $tool.from.category_FROM == "db_2DgelDB":
+ $tool.from.db_2DgelDB
+ #elif $tool.from.category_FROM == "ProtocolsMaterialsDB":
+ $tool.from.ProtocolsMaterialsDB
+ #elif $tool.from.category_FROM == "db_GenomeAnnotationDB":
+ $tool.from.db_GenomeAnnotationDB
+ #elif $tool.from.category_FROM == "db_OrganismSpecificGeneDB":
+ $tool.from.db_OrganismSpecificGeneDB
+ #elif $tool.from.category_FROM == "db_phylogenomic":
+ $tool.from.db_phylogenomic
+ #elif $tool.from.category_FROM == "db_EnzymePathwayDB":
+ $tool.from.db_EnzymePathwayDB
+ #elif $tool.from.category_FROM == "db_GeneExpression":
+ $tool.from.db_GeneExpression
+ #elif $tool.from.category_FROM == "db_other":
+ $tool.from.db_other
+ #end if
+
+ #if $tool.to.category_TO == "uniprot":
+ $tool.to.db_uniprot_TO
+ #elif $tool.to.category_TO == "oseqdb":
+ $tool.to.db_oseqdb
+ #elif $tool.to.category_TO == "3Dstrdb":
+ $tool.to.db_3Dstrdb
+ #elif $tool.to.category_TO == "ppidb":
+ $tool.to.db_ppidb
+ #elif $tool.to.category_TO == "chemistry":
+ $tool.to.db_chemistry
+ #elif $tool.to.category_TO == "protfgdb":
+ $tool.to.db_protfgdb
+ #elif $tool.to.category_TO == "polymorphismANDmutation":
+ $tool.to.db_polymorphismANDmutation
+ #elif $tool.to.category_TO == "db_2DgelDB":
+ $tool.to.db_2DgelDB
+ #elif $tool.to.category_TO == "ProtocolsMaterialsDB":
+ $tool.to.ProtocolsMaterialsDB
+ #elif $tool.to.category_TO == "db_GenomeAnnotationDB":
+ $tool.to.db_GenomeAnnotationDB
+ #elif $tool.frtoom.category_TO == "db_OrganismSpecificGeneDB":
+ $tool.to.db_OrganismSpecificGeneDB
+ #elif $tool.to.category_TO == "db_phylogenomic":
+ $tool.to.db_phylogenomic
+ #elif $tool.to.category_TO == "db_EnzymePathwayDB":
+ $tool.to.db_EnzymePathwayDB
+ #elif $tool.to.category_TO == "db_GeneExpression":
+ $tool.to.db_GeneExpression
+ #elif $tool.to.category_TO == "db_other":
+ $tool.to.db_other
+ #end if
+
+ id_file.tabular
+ ./output
+ #end if
+
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ tool['tool_choice'] == 'retrieve'
+ tool['format'] == 'fasta'
+
+
+ tool['tool_choice'] == 'retrieve'
+ tool['format'] == 'gff'
+
+
+ tool['tool_choice'] == 'map'
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ tr|S0DS17|S0DS17_GIBF5 Related to cytochrom P450 OS=Gibberella fujikuroi (strain CBS 195.34 / IMI 58289 / NRRL A-6831) GN=FFUJ_00006 PE=3 SV=1
+ MSYQSILLRQVNSLCDNLEEVARDENGGLIDMAMQSDYFTFDVMSEVIFGMAYNALKDTS
+ YRFVTGALGSSNIRIGTLVQSPLPAMCRIDKY...
+ >tr|M5BAG7|M5BAG7_9MICO ABC transporter, fused permease/ABC transporter involved in the biosynthesis of cytochrom bd, fused permease/ATP-binding protein OS=Clavibacter michiganensis subsp. nebraskensis NCPPB 2581 GN=cydC PE=3 SV=1
+ MNRDGVLRLAQPPTRRTLPGLLAGLASAVGAVALLATSAWLITRASEQPPILFLGMAIVG
+ VRAFALGRAAFRYLERITSHDAAFRALATLRV...
+ >tr|A0A077Z587|A0A077Z587_TRITR Kelch 3 and Kelch 4 and Cytochrom B561 domain con taining protein OS=Trichuris trichiura GN=TTRE_0000309301 PE=4 SV=1
+ MGSQQAADETQKVVERIILNINVRKDKRSFGLGIKIKKGNVFVSSIRPGSIAEDHFKLYD
+ VIKDVNGSRIDSRELCRDLIRTHKVLTV...
+
+-----
+
+This tool is based on the work `Jan Rudolph`_ and the UniProt API.
+
+.. _Jan Rudolph: https://github.com/jdrudolph/uniprot
+
+ ]]>
+
+ 10.1093/nar/gku989
+
+