Advertisement
Light1992

Codice Allineamento contro genoma FARGA

Jul 19th, 2021
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. cd /home/genomica/DATA/GENOLICS/RUN/GENOLICS_R_Leccino_Confronti
  2. mkdir Sonde_FARGA_controFARGA
  3. cd Sonde_FARGA_controFARGA
  4.  
  5. #Copiare le sonde SondeFARGA.fasta tramite pannello di controllo nella cartella
  6.  
  7. Indicizzare il genoma di FARGA
  8. #buildindex(basename = "index", reference="/home/genomica/DATA/Databases/BLAST/Genoma_FARGA/OE6_Farga/Oe6.scaffolds.fa")
  9.  
  10. #Librerie da importare
  11. library(Rsubread)
  12.  
  13. ##Individuazione file da utilizzare per l'allineamento a Leccino
  14. fastqPath_R1 <- list.files("//home/genomica/DATA/GENOLICS/Sonde_FARGA_controFARGA", pattern="fasta$", full=TRUE)
  15.  
  16. ##Creazione dei .BAM di allineamento
  17. align(index="index", maxMismatches=1, readfile1=fastqPath_R1, input_format="FASTA", output_format="BAM")
  18.  
  19. samtools sort SondeFASTA.fasta.subread.BAM > SondeFASTA.sorted.BAM
  20. samtools index SondeFASTA.sorted.BAM
  21. bamCoverage -b SondeFASTA.sorted.BAM --normalizeUsing RPKM -o SondeFASTA.bw --verbose --numberOfProcessors max/2 --binSize 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement