| Description | Command |
|---|---|
| Start a new session with session name | screen -S <session_name> |
| List running sessions / screens | screen -ls |
| Attach to a running session | screen -x |
| Attach to a running session with name | screen -r <session_name> |
This file contains hidden or 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
| conda env export --no-builds |
This file contains hidden or 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
| samtools faidx Trinity.fasta -r PL_transcript_id.csv > PL_extract.fasta |
This file contains hidden or 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
| Name | Hex Code | |
|---|---|---|
| Absolute Zero | #0048BA | |
| Acid | #B0BF1A | |
| Acid green | #B0BF1A | |
| Aero | #7CB9E8 | |
| Aero blue | #C9FFE5 | |
| Air superiority blue | #72A0C1 | |
| Alabama crimson | #AF002A | |
| Alabaster | #EDEAE0 | |
| Alice blue | #F0F8FF |
This file contains hidden or 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
| # Send filenames to manifest file | |
| ls *.fastq.gz > manifest.txt | |
| # Duplicate first column and add comma separation | |
| awk -F',' '{$1=$1","$1}1' OFS=',' manifest.txt > tmp && mv tmp manifest.txt | |
| # If necessary remove text information from first column in Vim visual mode |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| from Bio import SeqIO | |
| from Bio.SeqRecord import SeqRecord | |
| import sys | |
| gbank = SeqIO.parse(open(sys.argv[1], "r"), "genbank") | |
| output_handle=open("rRNAs.fa","w") | |
| rRNAs = [] | |
| for genome in gbank : |
This file contains hidden or 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 os | |
| import glob | |
| SAMPLE = ['FC-F1', 'FC-H1', 'FC-I1'] | |
| FWD = expand('{sample}/{sample}_unmapped_fwd.fastq', sample=SAMPLE) | |
| REV = expand('{sample}/{sample}_unmapped_rev.fastq', sample=SAMPLE) | |
| rule all: | |
| input: |
This file contains hidden or 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
| # send file names of R1s to a file | |
| ls *_R1_001.fastq.gz > samples.tab | |
| # depending on which version of awk/gawk we can do inplace changes | |
| awk -F'\t' '{$1=$1"\t"$1}1' OFS='\t' samples.tab > tmp && mv tmp samples.tab | |
| # Extract sample name | |
| sed -i 's/\([0-9+]\)\([A-Z+]\).*\.fastq\.gz\t/\1\2\t/g' samples.tab | |
| # Copy file names |
This file contains hidden or 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 os | |
| import glob | |
| KRAKEN_DB = 'fmdv_kraken_db' | |
| FILTER = ["0.05","0.2"] | |
| SAMPLE = [os.path.basename(f).split('_')[0] for f in glob.glob('../fmdv_fastq/*_1_*.fastq')] | |
| rule all: |
This file contains hidden or 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
| # Load packages ----------------------------------------------------------- | |
| library(tidyverse) | |
| # library(stringr) | |
| # Need to load if using tidyverse version 1.1.1. Not necessary to load separately if using tidyverse 1.2.1 | |
| library(here) |
NewerOlder