Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
KateSakharova committed Feb 20, 2024
1 parent ef64bee commit dbb4d04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions genomeuploader/genome_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def extract_ENA_info(genomeInfo, uploadDir, webin, password):
if runAccession in runsSet:
sampleAccession = ENA_info[run]["sample_accession"]
sampleInfo = ena.get_sample(sampleAccession, webin, password)

print(sampleInfo)
location = sampleInfo["location"]
latitude, longitude = '', ''
if 'N' in location:
Expand Down Expand Up @@ -449,7 +449,7 @@ def extract_ENA_info(genomeInfo, uploadDir, webin, password):
file.seek(0)
file.write(json.dumps(tempDict))
file.truncate()

print(tempDict)
tempDict = {**tempDict, **backupDict}
combine_ENA_info(genomeInfo, tempDict)

Expand Down Expand Up @@ -922,11 +922,11 @@ def create_genome_dictionary(self, samples_xml):
logger.info('Retrieving data for MAG submission...')

genomeInfo = extract_genomes_info(self.genomeMetadata, self.genomeType, self.live)
print(genomeInfo)

if not os.path.exists(samples_xml) or self.force:
extract_ENA_info(genomeInfo, self.upload_dir, self.username, self.password)
logger.info("Writing genome registration XML...")
print(genomeInfo)

write_genomes_xml(genomeInfo, samples_xml, self.genomeType,
self.centre_name, self.tpa)
logger.info("All files have been written to " + self.upload_dir)
Expand Down

0 comments on commit dbb4d04

Please sign in to comment.