ncfp is a script and module that facilitates recovery of nucleotide sequences from NCBI encoding a specified set of input protein sequences
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.
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:
ncfp <INPUT>.fasta <OUTPUT> <EMAIL>
<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.
<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
To find out more about what
ncfp can do, try
at the command-line
For more detailed information about
ncfp as a program, or using the underlying
ncbi_cds_from_protein Python module, please see the most recent documentation at https://ncfp.readthedocs.io/en/latest/
Unless otherwise indicated, all code is licensed under the MIT license and subject to the following agreement:
(c) The James Hutton Institute 2017-2018 Author: Leighton Pritchard Contact: firstname.lastname@example.org Address: Leighton Pritchard, Information and Computational Sciences, James Hutton Institute, Errol Road, Invergowrie, Dundee, DD2 5DA, Scotland, UK
The MIT License
Copyright (c) 2017-2018 The James Hutton Institute
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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size ncfp-0.1.1-py3-none-any.whl (24.2 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size ncfp-0.1.1.tar.gz (15.6 kB)||File type Source||Python version None||Upload date||Hashes View hashes|