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 gffutils | |
input_gff_file = "Mycobacterium_tuberculosis_H37Rv_gff_v4.gff" | |
output_gff_file = input_gff_file.replace('.gff', '_fixed.gff') | |
# Create a new GFF database | |
db = gffutils.create_db(input_gff_file, dbfn=':memory:', force=True, merge_strategy='replace') | |
# Create a new GFF writer | |
output_handle = open(output_gff_file, 'w') |
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
#!/bin/python | |
from Bio import Entrez | |
import subprocess | |
import ast | |
import statistics | |
def search_publications(author_name, start_year, end_year): | |
# Search PubMed for publications by the author within the specified date range | |
query = f'({author_name}[Author]) AND (Journal Article[Publication Type]) NOT (Clinical Trial[Publication Type]) NOT preprint[pt] NOT review[pt] AND ({start_year}:{end_year}[PDAT])' | |
handle = Entrez.esearch(db='pubmed', term=query) | |
record = Entrez.read(handle) |
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
--- | |
title: "Tabbed Tabs" | |
author: "SemiQuant" | |
date: "5/10/2019" | |
output: | |
flexdashboard::flex_dashboard: | |
orientation: columns | |
vertical_layout: fill | |
--- |
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
This is what you do, Dave. |