ffq icon indicating copy to clipboard operation
ffq copied to clipboard

ERROR 'str' object has no attribute 'copy'

Open holmrenser opened this issue 9 months ago • 0 comments

I ran the following command ffq --verbose --ftp 10.1111/jipb.13435, which should fetch the information of this paper, but I got the following error:

[2024-05-02 08:48:36,075]   DEBUG Printing verbose output
[2024-05-02 08:48:36,076]   DEBUG Namespace(IDs=['10.1111/jipb.13435'], o=None, t=None, l=None, ftp=True, aws=False, gcp=False, ncbi=False, split=False, verbose=True)
[2024-05-02 08:48:36,076] WARNING Searching by DOI may result in missing information.
[2024-05-02 08:48:36,076]    INFO Searching for DOI '10.1111/JIPB.13435'
[2024-05-02 08:48:36,461]    INFO Searching for Study SRP with title 'Single‐cell RNA‐seq of <i>Lotus japonicus</i> provide insights into identification and function of root cell types of legume'
[2024-05-02 08:48:36,680] WARNING No studies found with the given title. Searching Pubmed for DOI '10.1111/JIPB.13435'
[2024-05-02 08:48:37,307]    INFO Searching for GEO record linked to Pubmed ID '36537698'
[2024-05-02 08:48:37,807] WARNING No GEO records are linked to the Pubmed ID '36537698'. Searching for SRA record linked to this Pubmed ID.
[2024-05-02 08:48:39,822] WARNING Found 2 run accessions.
[2024-05-02 08:48:39,822]    INFO Parsing run SRR19350618
[2024-05-02 08:48:40,191]   DEBUG Encoding detection: ascii is most likely the one.
[2024-05-02 08:48:40,191]   DEBUG Encoding detection: ascii is most likely the one.
[2024-05-02 08:48:41,254]    INFO Parsing run SRR19411554
[2024-05-02 08:48:41,429]   DEBUG Encoding detection: ascii is most likely the one.
[2024-05-02 08:48:41,430]   DEBUG Encoding detection: ascii is most likely the one.
[2024-05-02 08:48:42,344]   ERROR 'str' object has no attribute 'copy'

If I subsequently run ffq --verbose --ftp SRR19411554 (the second of the runs printed in the above log) I do get some useful results:

[2024-05-02 08:54:29,910]   DEBUG Printing verbose output
[2024-05-02 08:54:29,910]   DEBUG Namespace(IDs=['SRR19411554'], o=None, t=None, l=None, ftp=True, aws=False, gcp=False, ncbi=False, split=False, verbose=True)
[2024-05-02 08:54:29,911]    INFO Parsing run SRR19411554
[2024-05-02 08:54:30,034]   DEBUG Encoding detection: ascii is most likely the one.
[2024-05-02 08:54:30,034]   DEBUG Encoding detection: ascii is most likely the one.
[
    {
        "accession": "SRR19411554",
        "filename": "SRR19411554_1.fastq.gz",
        "filetype": "fastq",
        "filesize": 33550492026,
        "filenumber": 1,
        "md5": "4105a4863679738623b0fbffb34b2926",
        "urltype": "ftp",
        "url": "ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR194/054/SRR19411554/SRR19411554_1.fastq.gz"
    },
    {
        "accession": "SRR19411554",
        "filename": "SRR19411554_2.fastq.gz",
        "filetype": "fastq",
        "filesize": 38659517396,
        "filenumber": 2,
        "md5": "67d185bd850a5bc54702673289043fc2",
        "urltype": "ftp",
        "url": "ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR194/054/SRR19411554/SRR19411554_2.fastq.gz"
    }
]

If I try the first run (ffq --verbose --ftp SRR19350618) I get an empty result:

[2024-05-02 08:58:23,150]   DEBUG Printing verbose output
[2024-05-02 08:58:23,150]   DEBUG Namespace(IDs=['SRR19350618'], o=None, t=None, l=None, ftp=True, aws=False, gcp=False, ncbi=False, split=False, verbose=True)
[2024-05-02 08:58:23,151]    INFO Parsing run SRR19350618
[2024-05-02 08:58:23,257]   DEBUG Encoding detection: ascii is most likely the one.
[2024-05-02 08:58:23,258]   DEBUG Encoding detection: ascii is most likely the one.
[]

Using ffq version 0.3.1

holmrenser avatar May 02 '24 06:05 holmrenser