huang 0 like s 454 view s
Tags: Commands
```sh ---------- updated ------------------------
Step 3: replace the readgroup in the bams
S1/unique/S1.realigned.bam
S2/unique/S2.realigned.bam
S3/unique/S3.realigned.bam
S4/unique/S4.realigned.bam
S5/unique/S5.realigned.bam
S6/unique/S6.realigned.bam
S7/unique/S7.realigned.bam
S8/unique/S8.realigned.bam
picard-tools AddOrReplaceReadGroups I=S1.realigned.bam O=S1_readgroup-added.bam SORT_ORDER=coordinate CREATE_INDEX=true RGPL=illumina RGID=S1 RGSM=S1 RGLB=standard RGPU=s1 VALIDATION_STRINGENCY=LENIENT
picard-tools AddOrReplaceReadGroups I=S2/unique/S2.realigned.bam O=S2_readgroup-added.bam SORT_ORDER=coordinate CREATE_INDEX=true RGPL=illumina RGID=S2 RGSM=S2 RGLB=standard RGPU=s2 VALIDATION_STRINGENCY=LENIENT
picard-tools AddOrReplaceReadGroups I=S3/unique/S3.realigned.bam O=S3_readgroup-added.bam SORT_ORDER=coordinate CREATE_INDEX=true RGPL=illumina RGID=S3 RGSM=S3 RGLB=standard RGPU=s3 VALIDATION_STRINGENCY=LENIENT
picard-tools AddOrReplaceReadGroups I=S4/unique/S4.realigned.bam O=S4_readgroup-added.bam SORT_ORDER=coordinate CREATE_INDEX=true RGPL=illumina RGID=S4 RGSM=S4 RGLB=standard RGPU=s4 VALIDATION_STRINGENCY=LENIENT
picard-tools AddOrReplaceReadGroups I=S5/unique/S5.realigned.bam O=S5_readgroup-added.bam SORT_ORDER=coordinate CREATE_INDEX=true RGPL=illumina RGID=S5 RGSM=S5 RGLB=standard RGPU=s5 VALIDATION_STRINGENCY=LENIENT
picard-tools AddOrReplaceReadGroups I=S6/unique/S6.realigned.bam O=S6_readgroup-added.bam SORT_ORDER=coordinate CREATE_INDEX=true RGPL=illumina RGID=S6 RGSM=S6 RGLB=standard RGPU=s6 VALIDATION_STRINGENCY=LENIENT
picard-tools AddOrReplaceReadGroups I=S7/unique/S7.realigned.bam O=S7_readgroup-added.bam SORT_ORDER=coordinate CREATE_INDEX=true RGPL=illumina RGID=S7 RGSM=S7 RGLB=standard RGPU=s7 VALIDATION_STRINGENCY=LENIENT
picard-tools AddOrReplaceReadGroups I=S8/unique/S8.realigned.bam O=S8_readgroup-added.bam SORT_ORDER=coordinate CREATE_INDEX=true RGPL=illumina RGID=S8 RGSM=S8 RGLB=standard RGPU=s8 VALIDATION_STRINGENCY=LENIENT
https://www.biostars.org/p/16242/
picard-tools MergeSamFiles INPUT=3-va18942-wt.bam INPUT=4-va18942-scv.bam OUTPUT=merged_picard.bam
samtools view -c merged_samtools.bam
samtools index merged_samtools.bam // ~/Fastqs/E_faecalis_va18942_vc/trimmed_CROP300_V583/Phylo/bams/merged_samtools.bam
==> ERROR: Expected 542 but only received 275; BinaryCodec in readmode; file:
/usr/bin/java -jar -XX:+UseSerialGC -Xmx4G /home/jhuang/Tools/SPANDx_v3.1/GenomeAnalysisTK.jar -T RealignerTargetCreator -I merged_samtools.bam -R /home/jhuang/DATA/Data_Anna4_SNP/Raw_Data_E_faecalis_va18942_vc/trimmed_CROP300_V583/E_faecalis_V583.fasta -o realigned.merged.bam.list
/usr/bin/java -jar -XX:+UseSerialGC -Xmx4G /home/jhuang/Tools/SPANDx_v3.1/GenomeAnalysisTK.jar -T IndelRealigner -I merged_samtools.bam -R /home/jhuang/DATA/Data_Anna4_SNP/Raw_Data_E_faecalis_va18942_vc/trimmed_CROP300_V583/E_faecalis_V583.fasta -targetIntervals realigned.merged.bam.list -o realigned.merged.realigned.bam
java -jar /home/jhuang/Tools/SPANDx_v3.1/GenomeAnalysisTK.jar -glm SNP -R /home/jhuang/DATA/Data_Anna4_SNP/Raw_Data_E_faecalis_va18942_vc/trimmed_CROP300_V583/E_faecalis_V583.fasta -T UnifiedGenotyper -I realigned.merged.realigned.bam -o merged.snps.raw.vcf -ploidy 1
java -jar /home/jhuang/Tools/SPANDx_v3.1/GenomeAnalysisTK.jar -glm INDEL -R /home/jhuang/DATA/Data_Anna4_SNP/Raw_Data_E_faecalis_va18942_vc/trimmed_CROP300_V583/E_faecalis_V583.fasta -T UnifiedGenotyper -I realigned.merged.realigned.bam -o merged.indels.raw.vcf -ploidy 1
-- until here --
filter_PASS.py merged.snps.marked.vcf > merged.snps.filtered.vcf
cat merged.snps.raw.vcf | /home/jhuang/Tools/freebayes_git/freebayes/vcflib/bin/vcffilter -f 'QUAL > 30' > merged.snps.filtered.vcf
filter_out.annotated.vcf.py merged.snps.filtered.vcf > merged.snps.filtered_.vcf
filter_out.annotated.vcf.py merged.snps_filtered_freebayes.vcf > merged.snps_filtered_freebayes_.vcf
cat merged.snps.filtered_.vcf merged.snps_filtered_freebayes_.vcf > merged.snps.filtered.both.vcf
sort -t$' ' -k1,1 -g merged.snps.filtered.both.vcf > merged.snps.filtered.both_.vcf
cat merged.snps.filtered_.vcf merged.snps_filtered_freebayes_.vcf > merged.snps.filtered.both.vcf
sort -t$' ' -k1,1 -g merged.snps.filtered.both.vcf > merged.snps.filtered.both_.vcf
common_snps.py
/usr/bin/java -jar -XX:+UseSerialGC -Xmx4G /home/jhuang/Tools/SPANDx_v3.1/snpEff/snpEff.jar eff -formatEff -v Klebsiella_pneumoniae_NTUH_K2044_uid59073 merged.snps.filtered_.vcf > merged.snps.filtered.both.annotated.vcf
/usr/bin/java -jar -XX:+UseSerialGC -Xmx4G /home/jhuang/Tools/SPANDx_v3.1/snpEff/snpEff.jar eff -formatEff -v Enterococcus_faecalis_V583_uid57669 merged.snps.filtered.common.vcf > merged.snps.filtered.common.annotated.vcf
! /usr/bin/java -jar -XX:+UseSerialGC -Xmx4G /home/jhuang/Tools/SPANDx_v3.1/snpEff/snpEff.jar eff -no-downstream -no-intergenic -ud 100 -formatEff -v GCA_000007645.1.22 merged.snps.filtered.both_.vcf > merged.snps.filtered.both.annotated.vcf
! /usr/bin/java -jar -XX:+UseSerialGC -Xmx4G /home/jhuang/Tools/SPANDx_v3.1/snpEff/snpEff.jar eff -formatEff -v GCA_000007645.1.22 merged.snps.filtered.both_.vcf > merged.snps.filtered.both.annotated.vcf
In /home/jhuang/Fastqs/S_epidermidis_vc/trimmed_CROP300_REF/Phylo/annotated
Running: /usr/bin/java -jar -XX:+UseSerialGC -Xmx4G /home/jhuang/Tools/SPANDx_v3.1/snpEff/snpEff.jar eff -no-downstream -no-intergenic -ud 100 -formatEff -v GCA_000007645.1.22 /home/jhuang/Fastqs/S_epidermidis_vc/trimmed_CROP300_REF/Phylo/out/out.vcf > /home/jhuang/Fastqs/S_epidermidis_vc/trimmed_CROP300_REF/Phylo/annotated/out.annotated.vcf
In /home/jhuang/Fastqs/S_epidermidis_vc/trimmed_CROP300_REF/Phylo/annotated
Running: /usr/bin/java -jar -XX:+UseSerialGC -Xmx4G /home/jhuang/Tools/SPANDx_v3.1/snpEff/snpEff.jar eff -no-downstream -no-intergenic -ud 100 -formatEff -v GCA_000007645.1.22 /home/jhuang/Fastqs/S_epidermidis_vc/trimmed_CROP300_REF/Phylo/out/out_indels.vcf > /home/jhuang/Fastqs/S_epidermidis_vc/trimmed_CROP300_REF/Phylo/annotated/out_indels.annotated.vcf
rm ./Outputs/Comparative/All_SNPs_annotated.txt
mv ./Phylo/out/out.vcf ./Phylo/out/out_.vcf
cp ./Phylo/bams/merged.snps.filtered.vcf ./Phylo/out/out.vcf
check Reihenfolge of sample in out.vcf and out_.vcf
11-va35329 5-va8169-wt 6-va8169-scv
sample_11-va35329 sample_5-va8169-wt sample_6-va8169-scv
merged.indels_filtered_freebayes.vcf
./Phylo/out/out.vcf
./Phylo/indels/out/out.vcf
-- ```
点赞本文的读者
还没有人对此文章表态
没有评论
© 2023 XGenes.com Impressum