README.md - ncfp
This repository contains code for a script that identifies and writes the corresponding nucleotide sequences for each protein in an input multiple sequence file to be used, for example, in backthreading coding sequences onto protein alignments for phylogenetic analyses. ncfp uses the NCBI accession or UniProt gene name (as appropriate) to identify source nucleotide sequences in the NCBI databases, download them, and write them to a file.
Quickstart: ncfp at the command-line
Providing an input file of protein sequences as <INPUT>.fasta, and writing output to the directory <OUTPUT>, while specifying a user email to NCBI of <EMAIL> will generate two files: <OUTPUT>/ncfp_aa.fasta and <OUTPUT>/ncfp_nt.fasta.
ncfp <INPUT>.fasta <OUTPUT> <EMAIL>
The file <OUTPUT>/ncfp_aa.fasta contains the amino acid sequences for all input proteins for which a corresponding nucleotide coding sequence could be identified, in FASTA format.
The file <OUTPUT>/ncfp_nt.fasta contains nucleotide coding sequences, where they could be found, for all the input proteins, in FASTA format.
Any input protein sequences for which a corresponding nucleotide sequence cannot be recovered, for any reason, are placed in the file <OUTPUT>/skipped.fas.
To find out more about what ncfp can do, try
ncfp --help
at the command-line
Documentation
For more detailed information about ncfp as a program, or using the underlying ncbi_cds_from_protein Python module, please see the stable version documentation at https://ncfp.readthedocs.io/en/stable/
License
Unless otherwise indicated, all code is licensed under the MIT license and subject to the following agreement:
(c) The James Hutton Institute 2017-2019
(c) The University of Strathclyde 2019-2020
Author: Leighton Pritchard
Contact: leighton.pritchard@strath.ac.uk
Address:
Leighton Pritchard,
Strathclyde Institute for Pharmacy and Biomedical Sciences,
Cathedral Street,
Glasgow,
G4 0RE,
Scotland,
UK
The MIT License
Copyright (c) 2017-2019 The James Hutton Institute Copyright (c) 2019-2020 The University of Strathclyde
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Metadata
Release files for ncfp 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ncfp-0.2.0.tar.gz | 18.5 kB | Without provenance | Details for ncfp-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ncfp-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for ncfp-0.2.0-py3-none-any.whl |
Total release size: 47.1 kB
Release files / ncfp-0.2.0.tar.gz
| Download URL | ncfp-0.2.0.tar.gz |
|---|---|
| Size | 18.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3400138b76698c68a069ae622b7c947dda56329c3e6039990fa820f119880340
|
|
BLAKE2b-256 checksum How to use checksums |
3b3a016cbad68fa2094f49afd9a313e396a1cdb76746118251fe68c1eebbbf76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200712 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
|
Release files / ncfp-0.2.0-py3-none-any.whl
| Download URL | ncfp-0.2.0-py3-none-any.whl |
|---|---|
| Size | 28.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
248a6baec1cdbd6c299ce06423311f05db358ca530a5f1431e3c533532cdf4f2
|
|
BLAKE2b-256 checksum How to use checksums |
134246d593ecdc5aadd707d2f55b299fb0a2f925f60c718d3880f26e1f8390b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200712 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
|
Security for ncfp 0.2.0
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.