Skip to main content

Introduction

BioFileKit: A Python command-line toolkit dedicated to simplifying the reading, writing, conversion, parsing and basic operations of various biological data file formats.

Install

pip install biofile-kit --upgrade

Change logs

v0.1.1

v0.1.0

Usage example

All commands in the "biofile_kit/bin" directory can type -h to see subcommands.

gff_tools -h
Usage: gff_tools [OPTIONS] COMMAND [ARGS]...

  Gff file tools.

Options:
  -V, --version  Show author and version information.
  -h, --help     Show this message and exit.

Commands:
  add_attr             Add attribute in 9th column of GFF file.
  extract_seq          Extract sequences from GFF file.
  get_feature_density  Get feature density from GFF file.
  rename               This script provides a standardized feature ID...
  sort                 Sort naturally in sequence according to...
  stats                Based on the attribute in the 9th column (eg.
  summary              Summarize the information of various features in...
  to_bed               Convert the file format from GFF to BED.
  to_gtf               Convert the file format from GFF to GTF.

All subcommands can also use -h to view the help documentation.

gff_tools rename -h
Usage: gff_tools rename [OPTIONS] <gff file|stdin>

  This script provides a standardized feature ID renaming scheme for genome
  annotation files in GFF format. It creates species-specific, chromosome-
  locating, and structured unique identifiers for different types of genomic
  features in accordance with best practices in bioinformatics, ensuring
  consistency and traceability of IDs throughout the annotation file.

  1.genes:<species_name>.<chr_name>Gxxxxxx.<annotation_version>

  2.mRNAs: <species_name>.<chr_name>Gxxxxxx.x.<annotation_version>

  3.other features:
  <species_name>.<chr_name>Gxxxxxx.x.<feature_type>.x.<annotation_version>

Options:
  -s, --species-name <str>        Species name.  [required]
  -v, --anno-version <str>        Annotation version.  [default: v1.0]
  -n, --npartitions <int>         The number of partitions to distribute the
                                  data into for dask processing.  [default: 4]
  -o, --output-file <file|stdout>
                                  Output file, stdout by default.
  -V, --version                   Show author and version information.
  -h, --help                      Show this message and exit.

Generate random nucleotide sequences

fasta_tools random_nucl -n seq1,seq2 -l 1000,1200
>seq1 length=1000
CGCCAGGCCTGCCCTGCGACGGAGGTTCCCCGTATGACTGCCCTATATCATTCCTGCTAAACTCAATCCACAAGATCAATTCACTCCGGGGAACAACTGCCACTAGAAACCGTAGGTTACCATCAATAGTTCCCCACTTGGAGGAAGAAGTCTTTGAAGCAGGTTGTCATCCAGCATTCTTTCTAAACGTCATTGGACATAGGGGTAAGCTCATATCCTCTCCCAACCATTCAGAAGTCCATGACCATGTCCGGTGCAAATTTGAAAGTCATGATGGTGAGGGAGCAAGAGAGCGCAGATCACGGATAAGTATTAAAAAGTGCTGTCGAGGCCGCAGTGGAAGTGACTAATTGGCTGATGCACGGACCTCCAGTGTACAGCTCATGTTTCAGGTGCGTCGGACTGTCAGTGACTCAATTTTCTGGGCCCAACTCCGCGTTCGGTGGATTAGTAACTATAGTGGTTGCATGAGGTACTGAGATTGAGCCGTGAAAAGCATTCAAAGTGCGGTTCCTCAACCTATTATTATTAAGACATAAGTTTGCTAGCGCTTTGTTGCAATCGTGTCGTGGAATGCGATTGATGCTTAGCAGTTTCCGGGAAGTACGGACTCATGCCGTTATGTGCGCCAACAAACAGCGCGTGTTTCATTTCGCGCCGGTCGCCTGGCGCGTGTTATGGGATCGCACTTCACCGTGCTGATATCGCTGAGGCGAGGGTTCCTCGAGATATTGGCTTGGCTCGCCAGGCAGTAGTCGTGGTCAGCCCGACTTGGCACGCTAAAGACGAGCCCACGTGCATTCGGTCGGAATCAGTTAGACGTCGAACGATTCGATCCAGCGTGAGGCCTATCCTTTGCCCATTTAACTCCGTATTCACGGTCTCCTTGATACATAGTGTACTTAGTGTTACCAGCGAACTCCGACGCGGACAGTGTCCTCGGAGTATTACCTCCAAAGAAATTCTCGGGCCGAACAGCGTAGTCTATACCGCCTGGGTG
>seq2 length=1200
ATAGGTGTAGTGTGTCTTCATCTTGATGTAAGTTCGTTCACCCAGATCTGCTAAAACGCATGGCATTTTTTTCGCATACGGTCCACTGGCACTATATGATTCCCAGTACTTCGCAGATTTGGGGGGGTAAGAGTCCGCGGAAGCGTTGTTCTGACGCGTACGCATGTTCGGTATTTTTTACGGGTGAGTTGCATCGGTTGTGTATTGGTCCATGTTAAGACGGTTATCGGGCAGGCTTCTCAATGCGGTGAGTCGGGAAGACACTAGCCAGCGAAATTATGTGATCGCTGGAATAGGATCGATGTAGCAACGACACTTTCCTGGCCTACAGACGGACTTGGACCGGATCAATCGTCTTATATAATAATACACGTCGCAGAACGGTCTGTGTATAGGACCGGTAGAATGAGTAGTTCATACTCCGGCCCGCAGGTACCCCTGTACGCATGAAAGTCCAAGCTCTCGCTGAACCGACACCTCTAGCCGAGGTACGTATGCATGACCTGGTTGTTCTCTTCGGGTCACGACAGTTGCCTATTTACGCTCGGATACCAGGAAACTTTGCCGGGAGTTCGCCCCCAGTAGTTCCCGGGTTGGGGTCGGGGTGTTCTGCCGATTACCGGATGTATCTCACCTGAGATTCAGCATCGGTGCGAACATCGTGAATCCTAAAGGTTGAACAAAGGAAGGCCTCCATGCGTTGGAAAGTCCTCGAAGTGGAGAAGTCTATCGTAGATCAACCGATAGGCAATGAAAAGAAAAAGCGCAACAGACGCCACGCTTCTAGATCGCAGTTGGCCTTTTAATGGCGAATCCATTTACCGAGCGAAGAAAAAGCCTGGCTAGCTTGTTTAAAACTGGTAACACTGAATCTCCGAAAGAGTAGCTATAGGCTCCCAGCACAGCCTGCGGCTGGCGCCAACGCCTAACGAAAATGCCAATCCACTTAGTTGTGTTAACTGTCTCCCCACTATATGCGGCTTACCAGGGAGTGTAATTTCTGGCGATGACCAGCGTTTCCTTTGGGTTCCGTCGAATTCCTTAGATCTAGGACAGCAGTTCGAATTACTTGGCGTGGTCGCATCAGGACTTCGCGTAGTGGCTATCCAGATCATAGACTGAGTCACGTATTTGACGCCAGACCTAAGACCCCACGATGGTTTCTAGTCGTAACTTGAGTGAGCTAGCTCGCCTCGTGTC

ORF prediction

fasta_tools random_nucl -n seq1,seq2 -l 1000,1200 | fasta_tools ORF_finder -c -
>seq1 length=42 ORF_prediction
MRLMLSSFREVRTHAVMCANKQRVFHFAPVAWRVLWDRTSPC*
>seq2 length=87 ORF_prediction
MIWIATTRSPDATTPSNSNCCPRSKEFDGTQRKRWSSPEITLPGKPHIVGRQLTQLSGLAFSLGVGASRRLCWEPIATLSEIQCYQF*

Metadata

Release files for biofile-kit 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for biofile-kit 0.1.1
File Size Uploaded Provenance Actions
biofile_kit-0.1.1.tar.gz 22.8 kB Without provenance Details for biofile_kit-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for biofile-kit 0.1.1
File Interpreter ABI Platform Actions
biofile_kit-0.1.1-py3-none-any.whl Python 3 none any Details for biofile_kit-0.1.1-py3-none-any.whl

Total release size: 74.5 kB

Release files / biofile_kit-0.1.1.tar.gz

Download URL biofile_kit-0.1.1.tar.gz
Size 22.8 kB
Tags Source
SHA-256 checksum
How to use checksums
02d7194f6287e9af5c2ccf92142aa94d254dfdea0ceb81106ab6c1459dde3803
BLAKE2b-256 checksum
How to use checksums
106cb2f643a034a91b2450766352284081d14446e41226e1cf6a61098131f4a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.20

Release files / biofile_kit-0.1.1-py3-none-any.whl

Download URL biofile_kit-0.1.1-py3-none-any.whl
Size 51.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0e0449cb7f5e2b911aa779ebdfc0a8cb44ede92dc2994b317e8844be16e16f2
BLAKE2b-256 checksum
How to use checksums
7dbc498e4857b5be8fdb4b6101d18a0008ae7e083cb1e1f796f0b9811e677c36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.20

Security for biofile-kit 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page