Skip to content

Commit

Permalink
Black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
saketkc committed Aug 21, 2024
1 parent 7fc50bb commit 33744d5
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,11 @@ servedocs: docs ## compile the docs watching for changes
watchmedo shell-command -p '*.md|*.rst' -c '$(MAKE) -C docs html' -R -D .

release: dist ## package and upload a release
python setup.py sdist
python setup.py bdist_wheel
python -m build
twine upload dist/*

dist: clean ## builds source and wheel package
python setup.py sdist
python setup.py bdist_wheel
python -m build
ls -l dist

install: clean ## install the package to the active Python's site-packages
Expand Down
1 change: 1 addition & 0 deletions pysradb/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Command line interface for pysradb
"""

import argparse
import os
import re
Expand Down
6 changes: 3 additions & 3 deletions pysradb/filter_attrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ def expand_sample_attribute_columns(metadata_df):
if sample_attribute_keys:
sample_attribute_keys = list(
map(
lambda x: x
if x not in metadata_df.columns.tolist()
else x + "_expanded",
lambda x: (
x if x not in metadata_df.columns.tolist() else x + "_expanded"
),
sample_attribute_keys,
)
)
Expand Down
1 change: 1 addition & 0 deletions pysradb/search.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""This file contains the search classes for the search feature.
"""

import os
import re
import sys
Expand Down
20 changes: 10 additions & 10 deletions pysradb/sraweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ def __init__(self, api_key=None):
API key for ncbi eutils.
"""
self.base_url = dict()
self.base_url[
"esummary"
] = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi"
self.base_url[
"esearch"
] = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi"
self.base_url[
"efetch"
] = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi"
self.base_url["esummary"] = (
"https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi"
)
self.base_url["esearch"] = (
"https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi"
)
self.base_url["efetch"] = (
"https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi"
)

self.ena_fastq_search_url = "https://www.ebi.ac.uk/ena/portal/api/filereport"
self.ena_params = [("result", "read_run"), ("fields", "fastq_ftp")]
Expand Down Expand Up @@ -411,7 +411,7 @@ def sra_metadata(
detailed=False,
expand_sample_attributes=False,
output_read_lengths=False,
**kwargs
**kwargs,
):
esummary_result = self.get_esummary_response("sra", srp)
try:
Expand Down

0 comments on commit 33744d5

Please sign in to comment.