Skip to content

Commit

Permalink
v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wwood committed Jan 17, 2024
1 parent 076366d commit 46d201b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ authors:
given-names: Suzanne B.
orcid: https://orcid.org/0000-0002-0489-9207
title: "Kingfisher: A utility for procurement of public sequencing data"
version: 0.3.1
version: 0.4.0
date-released: 2023-09-27
4 changes: 4 additions & 0 deletions docs/usage/extract.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ uncompressed.

Extract this SRA file [required]

**\--output-directory** *OUTPUT_DIRECTORY*

Output directory to write to [default: current working directory]

**-f**, **\--output-format-possibilities** {sra,fastq,fastq.gz,fasta,fasta.gz} [{sra,fastq,fastq.gz,fasta,fasta.gz} \...]

Allowable output formats. If more than one is specified, downloaded
Expand Down
4 changes: 4 additions & 0 deletions docs/usage/get.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ Download and extract sequence data from SRA or ENA
| aws-cp | Download .SRA file from AWS using aws s3 cp, which is then extracted with fasterq-dump. Does not usually require payment or an AWS account. |
| gcp-cp | Download .SRA file from Google Cloud gsutil, which is then extracted with fasterq-dump. Requires payment and a Google Cloud account. |

**\--output-directory** *OUTPUT_DIRECTORY*

Output directory to write to [default: current working directory]

# FURTHER DOWNLOAD OPTIONS

**\--download-threads** *DOWNLOAD_THREADS*
Expand Down
2 changes: 1 addition & 1 deletion kingfisher/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.1"
__version__ = "0.4.0"
12 changes: 12 additions & 0 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import io
from os.path import dirname, join
import re
import extern

def get_version(relpath):
Expand All @@ -17,6 +18,17 @@ def get_version(relpath):
version = get_version('kingfisher/version.py')
print("version is {}".format(version))

# Replace version in CITATION.cff
citations_lines = []
with open("CITATION.cff", "r") as f:
r = re.compile(r"( *version: )")
for line in f:
if matches := r.match(line):
line = matches.group(1) + version + "\n"
citations_lines.append(line)
with open("CITATION.cff", "w") as f:
f.writelines(citations_lines)

print("building docs")
extern.run("python3 build_docs.py")

Expand Down

0 comments on commit 46d201b

Please sign in to comment.