This file contains 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
source("http://bioconductor.org/biocLite.R") | |
library(AnnotationForge) | |
makeOrgPackageFromNCBI(version="0.0.1",author="PS",maintainer="PS <ps@pawelszczesny.org>",outputDir=".",tax_id=4081,genus="Solanum", species="lycopersicum") | |
#here you need to wait a bit, few hours maybe | |
install.packages("org.Slycopersicum.eg.db", repos=NULL, type="source") | |
library("org.Slycopersicum.eg.db/") | |
keys<-head(keys(org.Slycopersicum.eg.db)) | |
head(select(org.Slycopersicum.eg.db, keys=keys,cols=c("ENTREZID","ACCNUM","ALIAS","CHR","PMID","REFSEQ","SYMBOL","UNIGENE" ,"GENENAME")) |
This file contains 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
bwa index database.fasta | |
bwa aln -t #num_threads database.fasta reads.fastq > reads.sai | |
bwa samse database.fasta reads.sai reads.fastq > aln.sam | |
samtools view -b -o aln.bam aln.sam | |
samtools sort aln.bam aln.sorted | |
samtools index aln.sorted.bam | |
samtools mpileup -uf database.fasta aln.sorted.bam |bcftools view -cg - |vcfutils.pl vcf2fq >aln.fastq |