pwd
What is my Present Working Directory
nano file.txt
what is a way to edit a file?
grep "one" <file>
What is a way to display every line in <file> that includes one.
I open it with iTOL
What is a phylogenetic tree. tree.qza
man echo
What is show the manual for the command echo?
mv my_file.txt ../this_file.txt
What is move <file> up one level and rename as <new_file>
less -S textfile.txt
What is the best way to view a text file without line wrapping?
history | grep qiime
What is display all the lines form your history that include 'qiime'?
>header
ATGCGATGGATGCA
>header2
ATGGTCAGTA
What is a FASTA file? (specifically a multiFASTA)
What is k-mers?
cp /home/genome/joseph7e/reads/*.fastq.gz ./
What is copy all my fastq files from all directories to my current directory?
gunzip my_reads.fastq.gz
Unzip the fastq file
grep '>' contigs.fasta | less
What is display all the headers in my contigs file?
@Filename
GATCCT
+
IGICVW
What is a FASTQ?
"which blob_blast.sh" will output this
What is show the absolute path to the blob_blast.sh script on the server?
Name the path type:
1.) /home/genome/joseph7e/my_dir/
2.) ../genome/joseph7e/my_dir/
3.) ~/ (hint: sort of a trick question)
4.) ./
what is absolute, relative, absolute, relative?
cat *.fastq.gz
what is a terrible idea?
history | grep qiime | grep beta
what is print all the commands that contain the word qiime and beta?
This file includes per sample counts for each unique sequence variant.
What is a feature table (OTU table, SV table)?
The first line of a bash script starts with this symbol (#!)
What is hash bang or she-bang?
cd /
cd home
cd users/
cd $USER
what is moving into my home directory
print the first ten lines of a fast file.
awk -F'\t' '$2 > 10000 && $5 > 50 {print $7}' | grep "grep" | sort | wc
separated by a tab character print only lines that are greater than 10000 in column 2, greater than 50 in column 5, print column 7, grep for lines containing grep, sort them, print the number of lines.
5 common bioinformatic file formats
.nwk
.fasta
.gff
.faa
.fastq
The difference between $1 in an awk command and $1 in a bash script
What is awk refers to column 1, bash refers to the first parameter passed to the script