Coder Social home page Coder Social logo

meeshcompbio / misc_utils Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tomjkono/misc_utils

1.0 2.0 0.0 105 KB

A collection of Bash and Python scripts to perform various small tasks

License: The Unlicense

Python 85.55% Shell 11.41% R 3.04%

misc_utils's Introduction

Misc_Utils

A collection of Bash and Python scripts to perform various small tasks for DNA sequence data.

Contains the following scripts:

  • Count_Variants_Per_Contig.py: Counts how many variants there are in each contig/chromosome in a VCF
  • Filter_VCF.py: Apply arbitrary filters to a VCF file.
  • Genotype_Matrix_To_Fasta.py: Convert a genotyping matrix to FASTA for input into libsequence tools. Because it assumes a fixed genotyping platform, it will remove monomorphic markers as well.
  • Mass_Job_Deletion.sh: Delete all owned MSI jobs on the current server. Does not ask for confirmation, be careful.
  • PLINK_to_NicholsonFST.py: Convert from PLINK file formats to those used as input for an FST estimator developed by Nicholson et al. 2002 and implemented in the R package 'popgen'
  • Percent_Similarity.py: Calculate average percent similarity for SNPs listed in a VCF file.
  • Parallel_ms.py: Splits a big batch of ms simulations over multiple cores to make it run in less walltime.
  • Plot_SFS.R: Plot site frequency spectra.
  • Remove_Monomorphic.py: Remove monomorphic sites from a FASTA alignment.
  • SNP_Effect_Predictor.py: Predicts silent/nonsynonymous SNPs in a VCF, given a GFF and a reference assembly. Requires gff_parse.py and Biopython. SNPEff does this, but SNP_Effect_Predictor.py was written to work with a genome with an incomplete assembly.
  • SRA_Fetch.sh: Downloads .sra files from NCBI's Short Read Archive using LFTP. Can fetch based on Experiment number, Run number, Sample number, or Study number.
  • Strip_BAM.sh: Trim down a BAM file to just regions of interest. Requires SAMTools.
  • VCF_MAF.py: Counts the number of alternate and reference reads in a VCF. Useful only for BWC's BSA project (for now)
  • VCF_To_Htable.py: Translates a VCF into a Hudson-like polytable. Chokes on heterozygous sites.
  • gff_parse.py: Python classes to try to make reading/fetching chunks of data from a GFF v3 file easier. Gets parent, child, and "sibling" features given a feature identifier.
  • ms_FreqFilter.py: Apply a 'discovery panel' to ms output. Used in Fang et al. 2013 in G3 to simulate ascertainment for a genotyping platform.
  • transpose.sh: Transpose a matrix.

misc_utils's People

Contributors

tomjkono avatar

Stargazers

Meesh avatar

Watchers

James Cloos avatar Meesh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.