Skip to content

Instantly share code, notes, and snippets.

View nitinra's full-sized avatar

Nitin Ravikanthachari nitinra

  • University of Montana
  • Missoula, Montana
  • 08:32 (UTC -07:00)
  • X @Naikasanuchara
View GitHub Profile
@nitinra
nitinra / genome_oneliners.md
Created October 25, 2022 12:09 — forked from darencard/genome_oneliners.md
Quick one-liner commands that are useful for genomics

Useful Genomics Oneliners

The following commands sometimes require non-standard software like bioawk and seqtk.

rename scaffold headers with sequential numbers and lengths ("scaffold-N ")

bioawk -c fastx '{ print ">scaffold-" ++i" "length($seq)"\n"$seq }' < genome.fasta > new_genome.fasta

make association table of old and renamed scaffold names after above renaming command

@nitinra
nitinra / lumpy_cnvnator.sh
Created December 16, 2020 03:01 — forked from ryanlayer/lumpy_cnvnator.sh
LUMPY and CNVnator
WIN=100
SAMPLE="NA12878"
SAMPLE_BAM="NA12878_S1.bam"
cnvnator -root $SAMPLE.$WIN.root -genome GRCh37 -tree $SAMPLE_BAM
cnvnator -genome GRCh37 -root $SAMPLE.$WIN.root -his $WIN -d /shared/genomes/b37/full/chroms
cnvnator -root $SAMPLE.$WIN.root -stat $WIN
cnvnator -root $SAMPLE.$WIN.root -partition $WIN
cnvnator -root $SAMPLE.$WIN.root -call $WIN > $SAMPLE.$WIN.cnvcalls.txt