Skip to content

BUG: Treats local read files as SRR, if it supplied as path to read list. #165

@Alteroldis

Description

@Alteroldis

v0.4.1

Traceback (most recent call last):                                                                            
  File "/home/Tools/egapx/ui/egapx.py", line 1983, in <module>                                                
    sys.exit(main(sys.argv))                                                                                  
             ^^^^^^^^^^^^^^                                                                                   
  File "/home/Tools/egapx/ui/egapx.py", line 1882, in main                                                    
    res, reads_msg = prepare_reads(run_inputs, args.force)                                                    
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                    
  File "/home/Tools/egapx/ui/egapx.py", line 331, in prepare_reads                                            
    save_sra_metadata_file(outfile_path, sras, nosra)                                                         
  File "/home/Tools/egapx/ui/egapx.py", line 1550, in save_sra_metadata_file                                  
    metadata = get_sra_metadata(sras).values()                                                                
               ^^^^^^^^^^^^^^^^^^^^^^                                                                         
  File "/home/Tools/egapx/ui/egapx.py", line 1525, in get_sra_metadata                                        
    metadata = sra_query(" OR ".join(runs), runs)                                                             
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                             
  File "/home/Tools/egapx/ui/egapx.py", line 1541, in sra_query
    sra_uids = sra_uids_query(query)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/home/Tools/egapx/ui/egapx.py", line 1398, in sra_uids_query
    esearch = urlopen(esearch_url+quote(sra_potential_query.encode('utf-8') ))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 525, in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response
    response = self.parent.error(
               ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 563, in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 414: Request-URI Too Long

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