Advertisement
Light1992

Codice Allineamento Target Fasta

Jul 13th, 2021
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. cd /home/genomica/DATA/GENOLICS/RUN/GENOLICS_R_Leccino_Confronti
  2. cp index* /home/genomica/DATA/GENOLICS/Target_FARGA
  3.  
  4. cd /home/genomica/DATA/GENOLICS/RUN/GENOLICS/
  5. mkdir Target_Farga
  6.  
  7. #Librerie da importare
  8. library(Rsubread)
  9.  
  10. ##Individuazione file da utilizzare per l'allineamento a Leccino
  11. fastqPath_R1 <- list.files("//home/genomica/DATA/GENOLICS/Target_FARGA", pattern="fasta$", full=TRUE)
  12.  
  13. ##Creazione dei .BAM di allineamento
  14. align(index="index", maxMismatches=7, readfile1=fastqPath_R1, input_format="FASTA", output_format="BAM")
  15.  
  16. samtools sort Target_FARGA.subread.BAM > Target_FARGA.sorted.BAM
  17. samtools index Target_FARGA.sorted.BAM
  18. bamCoverage -b Target_FARGA.sorted.BAM --normalizeUsing RPKM -o Target_FARGA.bw --verbose --numberOfProcessors max/2 --binSize 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement