GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - victoria-r/BioPython: A collection of various biopython scripts.

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
BioPython_genbank.py
BioPython_genbank.py
 
 
BioPython_seq.py
BioPython_seq.py
 
 
BioPython_seqio.py
BioPython_seqio.py
 
 
README.md
README.md
 
 
create_seq.py
create_seq.py
 
 
find_dmel_orf.py
find_dmel_orf.py
 
 
find_orf.py
find_orf.py
 
 
format.py
format.py
 
 
kmers.fasta
kmers.fasta
 
 
read_seq.py
read_seq.py
 
 
read_seq2.py
read_seq2.py
 
 
sliding_window_fasta.py
sliding_window_fasta.py
 
 
transcribe.py
transcribe.py
 
 
translate.py
translate.py
 
 
yeast.fasta
yeast.fasta
 
 
yeast_reverse.fasta
yeast_reverse.fasta
 
 

Repository files navigation

BioPython

create_seq.py

Creates the fasta file kmers.fasta.

find_dmel_orf.py

Finds the first open reading frame (ORF) from the non-local fasta file /scratch/Drosophila/dmel-all-chromosome-r6.17.fasta. Translates the OFT to protein and prints out the protein.

find_orf.py

Finds the ORF from a DNA sequence.

format.py

Creates a template to print out an organized message.

read_seq.py

Takes a non-local fasta file and prints out the record id.

readseq2.py

Uses the template from format.py and prints out an organized message about a non-local fatsa file.

transcribe.py

Transcribes a line of random DNA and prints out the RNA.

translate.py

Prints out a protein sequence that has been translated from transcribed RNA.

BioPython_seq.py

This BioPython script creates a SeqRecord object with the following parameters: seq: "aaaatgggggggggggccccgtt" id: "#12345" description: "example 1" alphabet: "generic_dna" Then the object is written to a sequence file in GenBank format and called BioPyhon_seq.gb.

BioPython_genbank.py

This BioPython script creates a list with the following Seq objects: A sequence retrieved from GenBank by gi (id) for 515056 A sequence retrieved from GenBank by accession (id) for J01673.1 Then it prints out the sequences from the list as well as the type, location, and strand of each feature.

BioPython_seqio.py

This BioPython script reads a multi-sequence FASTA file and outputs a FASTA file whose contents are the reverse complements of the sequences from the original FASTA file.This script takes two arguments from the command line: the name of the original multi-sequence FASTA file, and the desired name of the new multi-sequence FASTA file. Tested on yeast.fasta. Writes the output yeast_reverse.fasta.

sliding_window_fasta.py

This BioPython script revises the sliding_window_fasta.py script from SlidingWindow repo to open with SeqIO. This file modifies the script sliding_window.py and uses the same functions but, instead of taking a k-mer size and a string, it takes a k_mer size and a fasta file. It also will run separately for each header, printing the header name on one line, and then each k-mer from that fasta entry followed by a tab, followed by the GC content of that k-mer, rounded to two decimal places. Tested with the dengue.fasta file.

Getting Started

Dependencies

  • Python3
  • A fasta file of choice - used a nonlocal file (not attached), dengue.fasta, and yeast.fasta
  • Can download dengue.fasta here: wget -O dengue.fasta 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nucleotide&id=NC_001477.1&rettype=fasta' (Links to an external site.)

Author

Victoria R. Liebsch-Aljawahiri

Date Created

11 October 2021

About

A collection of various biopython scripts.

Topics

bioinformaticsbiopythonfastagenbankkmersorfspython3transcriptiontranslation

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.