Skip to content

v0.0.5

Compare
Choose a tag to compare
@github-actions github-actions released this 18 Feb 11:13
· 9 commits to main since this release
  • support sensitivity mode
  • support ouput format
from diamond4py import Diamond, Sensitivity, OutFormat

# create a object
diamond = Diamond(
    database="database.dmnd",
    n_threads=4
)

# make db if you don't create it or just download one from websites
diamond.makedb("database.fasta")
print(diamond.version)

# print database statistic info
diamond.dbinfo()

# run blast for proteins
diamond.blastp(
    query="test_proteins.fasta",
    out="test_output",
    sensitivity = Sensitivity.DEFAULT,
    outfmt=OutFormat.BLAST_TABULAR
)