Created
May 30, 2017 12:47
-
-
Save harryscholes/146b12e26370618d598873a5981b3c7a to your computer and use it in GitHub Desktop.
Load NCBI BLAST -outfmt 6 .tsv file into Python with Pandas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
BLAST_output_file = "" # set to the path of the BLAST output file | |
df = pd.read_csv(BLAST_output_file, | |
sep="\t", | |
header=None, | |
names=["query_id", "subject_id", "pct_identity", "aln_length", "n_of_mismatches", | |
"gap_openings", "q_start", "q_end", "s_start", "s_end", "e_value", "bit_score"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment