Results for "Bash"

Bio-Scripts

  • Bash oneliner to extract all ids from a multifasta file

    #List of ids - one per line in allIds.txt $ awk 'BEGIN{while((getline0)l[">"$1]=1}/^>/{f=!l[$1]}f' seq.fa # You can play with this f=!l[$1 ] if wanted to extract or not extract the ids

    1538 days ago

  • Long reads mapper bash script !

    #!/bin/bash #only for LONG READS mapping #USAGE: runMapper.sh minimap2 ref.fa reads.fa/fq 48 ont echo -e "This is a bash scrip to map your long reads...

    2122 days ago

  • Running REAPR !

    ...PR pipeline] Running summary" /home/urbe/Tools/Reapr_1.0.18/reapr summary 00.assembly.fa 03.score 04.break 05.summary ----- #!/usr/bin/env bash set -e echo " test smalt...

    2099 days ago

  • Test bp-assembly !

    (denovo_asm) [jnarayan@hmem00 ~]$ git clone https://github.com/cdunn2001/git-sym.git fatal: destination path 'git-sym' already exists and is not an empty directory....

    2034 days ago

  • Bash color variables

    # Reset Color_Off='\033[0m' # Text Reset # Regular Colors Black='\033[0;30m' # Black Red='\033[0;31m' # Red Green='\033[0;32m' # Gr...

    2018 days ago

  • Script to Plot the Coverage

    #!/bin/bash Plot the coverage script chr=$1 start=$2 end=$3 samtools depth deduped_MA605.bam > deduped_MA605.coverage awk '$1 == $chr {print $0}' deduped_MA60...

    2003 days ago

  • Run sspace !

    #!/bin/bash cd `pwd` perl ~/apps/SSPACE-1.2_linux-x86_64/SSPACE_v1-2.pl \ -l libraries.txt \ -s Contigs_over200_nocp.fasta \ -k 5 \ -a 0.7 \ -x 1 \ -m 30 \ -o 20 \ -b Rayk31_scaffolds_extension

    1722 days ago

  • QV calculation in Bash !

    # $1 = vcf file # $2 = input bam file # $3 = output QV file module load samtools NUM_BP=`samtools depth $2 | perl -e '$c = 0; while(){chomp; @s = split(/\t/);...

    1604 days ago

  • Bash script to download SRA file !

    #We can use the sratoolkit to directly pull the sequence data (in paired FASTQ format) from the archive. fastq-dump is in the SRA toolkit. It allows directly downloadi...

    1559 days ago

  • Bash script to alignment of short reads against reference genome !

    bwa mem -t 40 -R '@RG\tID:K12\tSM:K12' \ E.coli_K12_MG1655.fa SRR1770413_1.fastq.gz SRR1770413_2.fastq.gz \ | samtools view -b - >SRR1770413.raw.bam sambamb...

    1559 days ago