Closed et-jaynes-in-a-banana-suit closed 4 years ago
Hi @et-jaynes-in-a-banana-suit, thanks for the bug report.
--detailed
is required for download
to work. The docs require updating, but this should work:
Note that --assay
is redundant in the SRAweb
mode.
pysradb metadata SRP125265 --detailed | grep 'study\|RNAseq' | pysradb download
Hmm, I tried that exact command and I'm still getting AttributeError: Can only use .str accessor with string values!
Are you using SRAmetadb.sqlite
?
Here's a notebook showing its usage: https://colab.research.google.com/drive/1CPruUgFYBE3L7MyLg9exWzON8dv_3QxQ
No, I'm not using the local database (it's rather large).
What version of pysradb
are you using?
I was not super clear on my previous comment but the Colab notebook shows the example of the SRAweb
mode.
https://colab.research.google.com/drive/1CPruUgFYBE3L7MyLg9exWzON8dv_3QxQ
pysradb==0.9.7
, full output of pip freeze below
asn1crypto==1.3.0
attrs==19.3.0
backcall==0.1.0
better-exceptions==0.2.2
biopython==1.76
bleach==3.1.4
blosc==1.7.0
certifi==2020.4.5.1
cffi==1.14.0
chardet==3.0.4
cryptography==2.8
cycler==0.10.0
decorator==4.4.1
defusedxml==0.6.0
entrypoints==0.3
idisplay==0.1.2
idna==2.9
importlib-metadata==1.6.0
ipykernel==5.1.4
ipython==7.12.0
ipython-genutils==0.2.0
ipywidgets==7.5.1
jedi==0.16.0
Jinja2==2.11.1
jsonschema==3.2.0
jupyter==1.0.0
jupyter-client==5.3.4
jupyter-console==6.1.0
jupyter-contrib-core==0.3.3
jupyter-contrib-nbextensions==0.5.1
jupyter-core==4.6.1
jupyter-highlight-selected-word==0.2.0
jupyter-latex-envs==1.4.6
jupyter-nbextensions-configurator==0.4.1
kiwisolver==1.1.0
lxml==4.5.0
MarkupSafe==1.1.1
matplotlib==3.1.3
mistune==0.8.4
mkl-fft==1.0.15
mkl-random==1.1.0
mkl-service==2.3.0
natsort==7.0.1
nbconvert==5.6.1
nbformat==5.0.5
notebook==6.0.3
numpy==1.18.1
pandas==1.0.1
pandocfilters==1.4.2
parso==0.6.1
pdb-tools==2.0.1
pexpect==4.8.0
pickleshare==0.7.5
prometheus-client==0.7.1
prompt-toolkit==3.0.3
ptyprocess==0.6.0
py3Dmol==0.8.0
pycparser==2.20
Pygments==2.5.2
pyOpenSSL==19.1.0
pyparsing==2.4.6
pyrosetta==2020.8+release.cb1caba
pyrsistent==0.16.0
PySocks==1.7.1
pysradb==0.9.7
pyteomics==4.2
python-dateutil==2.8.1
python-Levenshtein==0.12.0
pytz==2019.3
PyYAML==5.3.1
pyzmq==18.1.1
qtconsole==4.7.2
QtPy==1.9.0
requests==2.23.0
scipy==1.4.1
seaborn==0.10.0
Send2Trash==1.5.0
six==1.14.0
SQLAlchemy==1.3.13
terminado==0.8.3
testpath==0.4.4
tornado==6.0.3
tqdm==4.44.1
traitlets==4.3.3
urllib3==1.25.8
wcwidth==0.1.8
webencodings==0.5.1
widgetsnbextension==3.5.1
xlrd==1.2.0
xmltodict==0.12.0
zipp==3.1.0
Can you upgrade to 0.10.3
(preferably in a clean virtualenv or conda environment)?
pip install pysradb==0.10.3
That's working! I got the previous version from conda -c bioconda
today.
Thanks for letting me know! Reminds me I need to get https://github.com/bioconda/bioconda-recipes/pull/21135 to build.
Closing this as it seems to be fixed. Please feel free to reopen if you face any issues.
Running the following example from readme (different SRP)
pysradb metadata SRP125265 --assay | grep 'study\|RNAseq' | pysradb download
produces this error
Possible this is failing because
sample_title
is blank and whitespace is not being handled correctly incli.download
. The downloaded metadata loads fine withpd.read_fwf
.