Skip to content

Instantly share code, notes, and snippets.

@harryscholes
Created May 30, 2017 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harryscholes/146b12e26370618d598873a5981b3c7a to your computer and use it in GitHub Desktop.
Save harryscholes/146b12e26370618d598873a5981b3c7a to your computer and use it in GitHub Desktop.
Load NCBI BLAST -outfmt 6 .tsv file into Python with Pandas
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