Skip to content

Commit

Permalink
Working version for E94 EG41 WBPS11 (#15)
Browse files Browse the repository at this point in the history
* Add missing A-MEXP-2210 for human

* maps symbol to ensemble gene id, as symbol is required for decorations

* Fix plasmodium biomart version (wasn't picked by automatic changes).

* Aspergillus chromosomes follow arabic numerals, not roman.

* Fixes database name for o glumipatula

* Adds python script to validate gtf urls per organism

* Fix brachypodium gtf URL

* Fix aspergillus GTF

* Fix brassica oleracea and rapa GTFs

* Fix chlamydomonas GTF

* Fix danio rerio GTF

* Fix hordeum vulgare GTF

* Fix musa acuminata GTF

* Fix o glumipatula and o glaberrima GTF

* Fix o nivara and o punctata GTF

* Fix physcomitrella patens GTF

* Fix populus trichocarpa GTF

* Fix setaria italica GTF

* Fix triticum aestivum GTF

* Fix vitis vinifera GTF

* Fix Zea mays GTF

* Makes GTF downloads a bit more silent (avoids progress bar).
  • Loading branch information
pcm32 authored Oct 22, 2018
1 parent 8f0da81 commit e95b4af
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 24 deletions.
2 changes: 1 addition & 1 deletion annsrcs/ensembl/aspergillus_fumigatus
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ datasetName=afumigatus_eg_gene
mySqlDbName=aspergillus_fumigatus
mySqlDbUrl=mysql-eg-mirror.ebi.ac.uk:4157
types=ensgene,enstranscript,ensprotein
chromosomeName=I,II,III,IV,V,VI,VII,VIII
chromosomeName=1,2,3,4,5,6,7,8
property.gene_biotype=gene_biotype
property.description=description
property.ensgene=ensembl_gene_id
Expand Down
2 changes: 1 addition & 1 deletion annsrcs/ensembl/homo_sapiens
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ arrayDesign.A-AGIL-28=agilent_wholegenome_4x44k_v1
arrayDesign.A-GEOD-74=affy_hc_g110
arrayDesign.A-MEXP-2102=agilent_sureprint_g3_ge_8x60k
arrayDesign.A-MEXP-2183=agilent_wholegenome_4x44k_v2
arrayDesign.A-MEXP-2210=illumina_humanht_12_v4
arrayDesign.A-MEXP-2246=affy_huex_1_0_st_v2
arrayDesign.A-GEOD-16686=affy_hugene_2_0_st_v1
arrayDesign.A-MEXP-2320=agilent_sureprint_g3_ge_8x60k_v2

2 changes: 1 addition & 1 deletion annsrcs/ensembl/oryza_glumaepatula
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ url=http://plants.ensembl.org/biomart/martservice?
organism=oryza glumaepatula
databaseName=plants
datasetName=oglumipatula_eg_gene
mySqlDbName=oryza_glumaepatula
mySqlDbName=oryza_glumipatula
mySqlDbUrl=mysql-eg-mirror.ebi.ac.uk:4157
types=ensgene,enstranscript,ensprotein
property.gene_biotype=gene_biotype
Expand Down
2 changes: 1 addition & 1 deletion annsrcs/ensembl/plasmodium_berghei
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
software.name=protists
software.version=39
software.version=41
url=http://protists.ensembl.org/biomart/martservice?
organism=plasmodium bergheia
databaseName=protists
Expand Down
2 changes: 1 addition & 1 deletion annsrcs/ensembl/saccharomyces_cerevisiae
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ property.goterm=name_1006
property.interpro=interpro
property.interproterm=interpro_description
property.uniprot=uniprotswissprot
property.symbol=ensembl_gene_id
arrayDesign.A-AFFY-27=affy_yg_s98
arrayDesign.A-AFFY-47=affy_yeast_2

2 changes: 1 addition & 1 deletion sh/gtf/download_gtfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ while read -r organism gtf; do
mkdir -p ${gtfsDir}/${organism}
rm -rf ${gtfsDir}/${organism}/*

curl $gtf | gunzip -c > $localGtf
curl -sS $gtf | gunzip -c > $localGtf
$(dirname ${BASH_SOURCE[0]})/gtf2gff3.pl $localGtf > $localGff3
fi
done < $gxaRefs
36 changes: 18 additions & 18 deletions sh/gtf/gxa_references.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ anolis_carolinensis ftp://ftp.ensembl.org/pub/release-RELNO/gtf/anolis_carolinen
anopheles_gambiae ftp://ftp.ensemblgenomes.org/pub/metazoa/release-RELNO/gtf/anopheles_gambiae/Anopheles_gambiae.AgamP4.RELNO.gtf.gz
arabidopsis_lyrata ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/arabidopsis_lyrata/Arabidopsis_lyrata.v.1.0.RELNO.gtf.gz
arabidopsis_thaliana ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/arabidopsis_thaliana/Arabidopsis_thaliana.TAIR10.RELNO.gtf.gz
aspergillus_fumigatus ftp://ftp.ensemblgenomes.org/pub/fungi/release-RELNO/gtf/aspergillus_fumigatus/Aspergillus_fumigatus.CADRE.RELNO.gtf.gz
aspergillus_fumigatus ftp://ftp.ensemblgenomes.org/pub/fungi/release-RELNO/gtf/aspergillus_fumigatus/Aspergillus_fumigatus.ASM265v1.RELNO.gtf.gz
beta_vulgaris ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/beta_vulgaris/Beta_vulgaris.RefBeet-1.2.2.RELNO.gtf.gz
bos_taurus ftp://ftp.ensembl.org/pub/release-RELNO/gtf/bos_taurus/Bos_taurus.UMD3.1.RELNO.gtf.gz
brachypodium_distachyon ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/brachypodium_distachyon/Brachypodium_distachyon.v1.0.RELNO.gtf.gz
brassica_oleracea ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/brassica_oleracea/Brassica_oleracea.v2.1.RELNO.gtf.gz
brassica_rapa ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/brassica_rapa/Brassica_rapa.IVFCAASv1.RELNO.gtf.gz
brachypodium_distachyon ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/brachypodium_distachyon/Brachypodium_distachyon.Brachypodium_distachyon_v3.0.RELNO.gtf.gz
brassica_oleracea ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/brassica_oleracea/Brassica_oleracea.BOL.RELNO.gtf.gz
brassica_rapa ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/brassica_rapa/Brassica_rapa.Brapa_1.0.RELNO.gtf.gz
brassica_napus ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/brassica_napus/Brassica_napus.AST_PRJEB5043_v1.RELNO.gtf.gz
caenorhabditis_elegans ftp://ftp.ebi.ac.uk/pub/databases/wormbase/parasite/releases/WBPSRELNO/species/caenorhabditis_elegans/PRJNA13758/caenorhabditis_elegans.PRJNA13758.WBPSRELNO.canonical_geneset.gtf.gz
canis_familiaris ftp://ftp.ensembl.org/pub/release-RELNO/gtf/canis_familiaris/Canis_familiaris.CanFam3.1.RELNO.gtf.gz
chlamydomonas_reinhardtii ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/chlamydomonas_reinhardtii/Chlamydomonas_reinhardtii.v3.1.RELNO.gtf.gz
chlamydomonas_reinhardtii ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/chlamydomonas_reinhardtii/Chlamydomonas_reinhardtii.Chlamydomonas_reinhardtii_v5.5.RELNO.gtf.gz
chlorocebus_sabaeus ftp://ftp.ensembl.org/pub/release-RELNO/gtf/chlorocebus_sabaeus/Chlorocebus_sabaeus.ChlSab1.1.RELNO.gtf.gz
chondrus_crispus ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/chondrus_crispus/Chondrus_crispus.ASM35022v2.RELNO.gtf.gz
ciona_intestinalis ftp://ftp.ensembl.org/pub/release-RELNO/gtf/ciona_intestinalis/Ciona_intestinalis.KH.RELNO.gtf.gz
ciona_savignyi ftp://ftp.ensembl.org/pub/release-RELNO/gtf/ciona_savignyi/Ciona_savignyi.CSAV2.0.RELNO.gtf.gz
corchorus_capsularis ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/corchorus_capsularis/Corchorus_capsularis.CCACVL1_1.0.RELNO.gtf.gz
cyanidioschyzon_merolae ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/cyanidioschyzon_merolae/Cyanidioschyzon_merolae.ASM9120v1.RELNO.gtf.gz
danio_rerio ftp://ftp.ensembl.org/pub/release-RELNO/gtf/danio_rerio/Danio_rerio.GRCz10.RELNO.gtf.gz
danio_rerio ftp://ftp.ensembl.org/pub/release-RELNO/gtf/danio_rerio/Danio_rerio.GRCz11.RELNO.gtf.gz
dasypus_novemcinctus ftp://ftp.ensembl.org/pub/release-RELNO/gtf/dasypus_novemcinctus/Dasypus_novemcinctus.Dasnov3.0.RELNO.gtf.gz
drosophila_melanogaster ftp://ftp.ensemblgenomes.org/pub/release-RELNO/metazoa/gtf/drosophila_melanogaster/Drosophila_melanogaster.BDGP6.RELNO.gtf.gz
equus_caballus ftp://ftp.ensembl.org/pub/release-RELNO/gtf/equus_caballus/Equus_caballus.EquCab2.RELNO.gtf.gz
Expand All @@ -30,39 +30,39 @@ galdieria_sulphuraria ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/
glycine_max ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/glycine_max/Glycine_max.Glycine_max_v2.0.RELNO.gtf.gz
gorilla_gorilla ftp://ftp.ensembl.org/pub/release-RELNO/gtf/gorilla_gorilla/Gorilla_gorilla.gorGor4.RELNO.gtf.gz
homo_sapiens ftp://ftp.ensembl.org/pub/release-RELNO/gtf/homo_sapiens/Homo_sapiens.GRCh38.RELNO.gtf.gz
hordeum_vulgare ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/hordeum_vulgare/Hordeum_vulgare.Hv_IBSC_PGSB_v2.RELNO.gtf.gz
hordeum_vulgare ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/hordeum_vulgare/Hordeum_vulgare.IBSC_v2.RELNO.gtf.gz
leersia_perrieri ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/leersia_perrieri/Leersia_perrieri.Lperr_V1.4.RELNO.gtf.gz
macaca_mulatta ftp://ftp.ensembl.org/pub/release-RELNO/gtf/macaca_mulatta/Macaca_mulatta.Mmul_8.0.1.RELNO.gtf.gz
medicago_truncatula ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/medicago_truncatula/Medicago_truncatula.MedtrA17_4.0.RELNO.gtf.gz
monodelphis_domestica ftp://ftp.ensembl.org/pub/release-RELNO/gtf/monodelphis_domestica/Monodelphis_domestica.monDom5.RELNO.gtf.gz
musa_acuminata ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/musa_acuminata/Musa_acuminata.MA1.RELNO.gtf.gz
musa_acuminata ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/musa_acuminata/Musa_acuminata.ASM31385v1.RELNO.gtf.gz
mus_musculus ftp://ftp.ensembl.org/pub/release-RELNO/gtf/mus_musculus/Mus_musculus.GRCm38.RELNO.gtf.gz
oryctolagus_cuniculus ftp://ftp.ensembl.org/pub/release-RELNO/gtf/oryctolagus_cuniculus/Oryctolagus_cuniculus.OryCun2.0.RELNO.gtf.gz
ornithorhynchus_anatinus ftp://ftp.ensembl.org/pub/release-RELNO/gtf/ornithorhynchus_anatinus/Ornithorhynchus_anatinus.OANA5.RELNO.gtf.gz
oryza_barthii ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/oryza_barthii/Oryza_barthii.O.barthii_v1.RELNO.gtf.gz
oryza_brachyantha ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/oryza_brachyantha/Oryza_brachyantha.Oryza_brachyantha.v1.4b.RELNO.gtf.gz
oryza_glaberrima ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/oryza_glaberrima/Oryza_glaberrima.AGI1.1.RELNO.gtf.gz
oryza_glumaepatula ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/oryza_glumaepatula/Oryza_glumaepatula.ALNU02000000.RELNO.gtf.gz
oryza_glaberrima ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/oryza_glaberrima/Oryza_glaberrima.Oryza_glaberrima_V1.RELNO.gtf.gz
oryza_glumaepatula ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/oryza_glumipatula/Oryza_glumipatula.Oryza_glumaepatula_v1.5.RELNO.gtf.gz
oryza_longistaminata ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/oryza_longistaminata/Oryza_longistaminata.O_longistaminata_v1.0.RELNO.gtf.gz
oryza_meridionalis ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/oryza_meridionalis/Oryza_meridionalis.Oryza_meridionalis_v1.3.RELNO.gtf.gz
oryza_nivara ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/oryza_nivara/Oryza_nivara.AWHD00000000.RELNO.gtf.gz
oryza_punctata ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/oryza_punctata/Oryza_punctata.AVCL00000000.RELNO.gtf.gz
oryza_nivara ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/oryza_nivara/Oryza_nivara.Oryza_nivara_v1.0.RELNO.gtf.gz
oryza_punctata ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/oryza_punctata/Oryza_punctata.Oryza_punctata_v1.2.RELNO.gtf.gz
oryza_rufipogon ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/oryza_rufipogon/Oryza_rufipogon.OR_W1943.RELNO.gtf.gz
oryza_sativa ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/oryza_sativa/Oryza_sativa.IRGSP-1.0.RELNO.gtf.gz
oryza_indica ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/oryza_indica/Oryza_indica.ASM465v1.RELNO.gtf.gz
ostreococcus_lucimarinus ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/ostreococcus_lucimarinus/Ostreococcus_lucimarinus.ASM9206v1.RELNO.gtf.gz
ovis_aries ftp://ftp.ensembl.org/pub/release-RELNO/gtf/ovis_aries/Ovis_aries.Oar_v3.1.RELNO.gtf.gz
pan_troglodytes ftp://ftp.ensembl.org/pub/release-RELNO/gtf/pan_troglodytes/Pan_troglodytes.Pan_tro_3.0.RELNO.gtf.gz
papio_anubis ftp://ftp.ensembl.org/pub/release-RELNO/gtf/papio_anubis/Papio_anubis.Panu_3.0.RELNO.gtf.gz
physcomitrella_patens ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/physcomitrella_patens/Physcomitrella_patens.ASM242v1.RELNO.gtf.gz
physcomitrella_patens ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/physcomitrella_patens/Physcomitrella_patens.Phypa_V3.RELNO.gtf.gz
plasmodium_berghei ftp://ftp.ensemblgenomes.org/pub/protists/release-RELNO/gtf/plasmodium_berghei/Plasmodium_berghei.PBANKA01.RELNO.gtf.gz
pongo_abelii ftp://ftp.ensembl.org/pub/release-RELNO/gtf/pongo_abelii/Pongo_abelii.PPYG2.RELNO.gtf.gz
populus_trichocarpa ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/populus_trichocarpa/Populus_trichocarpa.JGI2.0.RELNO.gtf.gz
populus_trichocarpa ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/populus_trichocarpa/Populus_trichocarpa.Pop_tri_v3.RELNO.gtf.gz
prunus_persica ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/prunus_persica/Prunus_persica.Prunus_persica_NCBIv2.RELNO.gtf.gz
rattus_norvegicus ftp://ftp.ensembl.org/pub/release-RELNO/gtf/rattus_norvegicus/Rattus_norvegicus.Rnor_6.0.RELNO.gtf.gz
saccharomyces_cerevisiae ftp://ftp.ensemblgenomes.org/pub/release-RELNO/fungi/gtf/saccharomyces_cerevisiae/Saccharomyces_cerevisiae.R64-1-1.RELNO.gtf.gz
selaginella_moellendorffii ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/selaginella_moellendorffii/Selaginella_moellendorffii.v1.0.RELNO.gtf.gz
setaria_italica ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/setaria_italica/Setaria_italica.JGIv2.0.RELNO.gtf.gz
setaria_italica ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/setaria_italica/Setaria_italica.Setaria_italica_v2.0.RELNO.gtf.gz
schistosoma_mansoni ftp://ftp.ebi.ac.uk/pub/databases/wormbase/parasite/releases/WBPSRELNO/species/schistosoma_mansoni/PRJEA36577/schistosoma_mansoni.PRJEA36577.WBPSRELNO.canonical_geneset.gtf.gz
schizosaccharomyces_pombe ftp://ftp.ensemblgenomes.org/pub/release-RELNO/fungi/gtf/schizosaccharomyces_pombe/Schizosaccharomyces_pombe.ASM294v2.RELNO.gtf.gz
solanum_lycopersicum ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/solanum_lycopersicum/Solanum_lycopersicum.SL2.50.RELNO.gtf.gz
Expand All @@ -72,9 +72,9 @@ sus_scrofa ftp://ftp.ensembl.org/pub/release-RELNO/gtf/sus_scrofa//Sus_scrofa.Ss
tetraodon_nigroviridis ftp://ftp.ensembl.org/pub/release-RELNO/gtf/tetraodon_nigroviridis/Tetraodon_nigroviridis.TETRAODON8.RELNO.gtf.gz
theobroma_cacao ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/theobroma_cacao/Theobroma_cacao.Theobroma_cacao_20110822.RELNO.gtf.gz
trifolium_pratense ftp://ftp.ensemblgenomes.org/pub/plants/release-RELNO/gtf/trifolium_pratense/Trifolium_pratense.Trpr.RELNO.gtf.gz
triticum_aestivum ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/triticum_aestivum/Triticum_aestivum.TGACv1.RELNO.gtf.gz
triticum_aestivum ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/triticum_aestivum/Triticum_aestivum.IWGSC.RELNO.gtf.gz
triticum_urartu ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/triticum_urartu/Triticum_urartu.ASM34745v1.RELNO.gtf.gz
vitis_vinifera ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/vitis_vinifera/Vitis_vinifera.IGGP_12x.RELNO.gtf.gz
vitis_vinifera ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/vitis_vinifera/Vitis_vinifera.12X.RELNO.gtf.gz
xenopus_tropicalis ftp://ftp.ensembl.org/pub/release-RELNO/gtf/xenopus_tropicalis/Xenopus_tropicalis.JGI_4.2.RELNO.gtf.gz
yarrowia_lipolytica ftp://ftp.ensemblgenomes.org/pub/fungi/release-RELNO/gtf/yarrowia_lipolytica/Yarrowia_lipolytica.GCA_000002525.1.RELNO.gtf.gz
zea_mays ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/zea_mays/Zea_mays.AGPv4.RELNO.gtf.gz
zea_mays ftp://ftp.ensemblgenomes.org/pub/release-RELNO/plants/gtf/zea_mays/Zea_mays.B73_RefGen_v4.RELNO.gtf.gz
47 changes: 47 additions & 0 deletions sh/gtf/validate_gtf_urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/usr/bin/env python3

from ftplib import FTP
import argparse, re, os, sys

def parse_url(url):
"""
Parses a complete ftp URL into server, path and file name.
"""
match = re.search("ftp://([a-z\.]*)/(.*)$", url)
server = match.group(1)
path_tokens = match.group(2).split("/")
return server, "/"+"/".join(path_tokens[:-1]), path_tokens[-1]


parser = argparse.ArgumentParser(description='Check GTF URLs for organism and release based on gxa_references.conf file.')
parser.add_argument('--organism', help='Organism to validate for')
# parser.add_argument('--source', help='ensembl or wbps')
parser.add_argument('--release', help='release number')
args = parser.parse_args()

gxa_references_path = os.path.abspath(os.path.dirname(sys.argv[0]))+"/gxa_references.conf"

for line in open(gxa_references_path, 'r'):
(organism, url) = line.split()
if organism == args.organism:
corrected_url = url.replace("RELNO", args.release)
server, path, gtf_file = parse_url(corrected_url)
ftp = FTP(server)
ftp.login()
try:
ftp.cwd(path)
except Error:
print("Path "+path+" not found!")
sys.exit(1)
files_listed = []
ftp.retrlines('NLST', files_listed.append)
if gtf_file in files_listed:
print("File found!")
sys.exit(0)
else:
print("Not found: "+path+'/'+gtf_file)
print("Possible alternatives are:")
for file_l in files_listed:
if "gtf" in file_l:
print("- "+file_l)
sys.exit(1)

0 comments on commit e95b4af

Please sign in to comment.