Skip to content

SRR000001.sra fails to import #325

@MrCreosote

Description

@MrCreosote

Code:

from biokbase.narrative.jobs.appmanager import AppManager
AppManager().run_app(
    "kb_uploadmethods/import_fastq_sra_as_reads_from_staging",
    {
        "import_type": "SRA",
        "fastq_fwd_staging_file_name": "",
        "fastq_rev_staging_file_name": "",
        "sra_staging_file_name": "SRR000001.sra",
        "sequencing_tech": "Illumina",
        "name": "SRR000001.sra_reads",
        "single_genome": 1,
        "interleaved": 0,
        "read_orientation_outward": 0,
        "insert_size_std_dev": None,
        "insert_size_mean": None
    },
    tag="release",
    version="1.0.47",
    cell_id="94e0efbc-7823-40d7-9834-7c08f8698b67",
    run_id="59b3effd-7871-499a-82b5-42909e756df7"
)

Stack trace:

Traceback (most recent call last):
  File "/kb/module/bin/../lib/kb_uploadmethods/kb_uploadmethodsServer.py", line 101, in _call_method
    result = method(ctx, *params)
  File "/kb/module/lib/kb_uploadmethods/kb_uploadmethodsImpl.py", line 914, in import_reads_from_staging
    returnVal = importer.import_reads_from_staging(params)
  File "/kb/module/lib/kb_uploadmethods/Utils/ImportReadsUtil.py", line 75, in import_reads_from_staging
    return self._run_sra_importer(params)
  File "/kb/module/lib/kb_uploadmethods/Utils/ImportReadsUtil.py", line 51, in _run_sra_importer
    return_val = self.sra_importer.import_sra_from_staging(sra_importer_params)
  File "/kb/module/lib/kb_uploadmethods/Utils/ImportSRAUtil.py", line 200, in import_sra_from_staging
    returnVal = self.ru.upload_reads(import_sra_reads_params)
  File "/kb/module/lib/installed_clients/ReadsUtilsClient.py", line 192, in upload_reads
    [params], self._service_ver, context)
  File "/kb/module/lib/installed_clients/baseclient.py", line 253, in run_job
    job_state = self._check_job(mod, job_id)
  File "/kb/module/lib/installed_clients/baseclient.py", line 220, in _check_job
    return self._call(self.url, service + '._check_job', [job_id])
  File "/kb/module/lib/installed_clients/baseclient.py", line 187, in _call
    raise ServerError(**err['error'])
installed_clients.baseclient.ServerError: Server error: -32000. 'Invalid FASTQ file - Path: /kb/module/work/tmp/e015eea6-d58a-4dd8-a992-7dd8550977ac.inter.fastq. Input Files Paths - FWD Path : /kb/module/work/tmp/import_SRA_6393b150-85df-494a-a8e9-3ac736d1d1a4/bc544bfa-dad1-4ee0-8da4-d03cfcfb44d1/SRR000001/1/fastq.fastq, REV Path : /kb/module/work/tmp/import_SRA_6393b150-85df-494a-a8e9-3ac736d1d1a4/bc544bfa-dad1-4ee0-8da4-d03cfcfb44d1/SRR000001/2/fastq.fastq.'
Traceback (most recent call last):
  File "/kb/module/bin/../lib/ReadsUtils/ReadsUtilsServer.py", line 101, in _call_method
    result = method(ctx, *params)
  File "/kb/module/lib/ReadsUtils/ReadsUtilsImpl.py", line 1078, in upload_reads
    raise ValueError(validation_error_message)
ValueError: Invalid FASTQ file - Path: /kb/module/work/tmp/e015eea6-d58a-4dd8-a992-7dd8550977ac.inter.fastq. Input Files Paths - FWD Path : /kb/module/work/tmp/import_SRA_6393b150-85df-494a-a8e9-3ac736d1d1a4/bc544bfa-dad1-4ee0-8da4-d03cfcfb44d1/SRR000001/1/fastq.fastq, REV Path : /kb/module/work/tmp/import_SRA_6393b150-85df-494a-a8e9-3ac736d1d1a4/bc544bfa-dad1-4ee0-8da4-d03cfcfb44d1/SRR000001/2/fastq.fastq.

I believe you can use the SRA toolkit to download SRR000001.sra or I can give you a copy.

All app settings were as the default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions