Skip to content

Commit

Permalink
phase and prune done
Browse files Browse the repository at this point in the history
  • Loading branch information
SamGurr committed Nov 21, 2024
1 parent 67c3b96 commit f1af88f
Show file tree
Hide file tree
Showing 69 changed files with 19,104 additions and 124 deletions.
20 changes: 20 additions & 0 deletions RAnalysis/Data/Popgen/02_phase_loci/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# In R I used the script 02_phase_loci in my github repo to produce the vcf.gz files for each pop
# 'pop' is by univariable Generation_Type_Treatment as F0-F3, broodstock or juveniles, and Low Moderate or High OA
# imported the vcf.gz files by 'pop' into sedna using scp
ls *.gz > infile
sed 's/\..*$//g' infile > infile2 # omit .vcf.gz
mv infile2 infil # rename

# run for loop iterating eachline to phase with beagle and bcftools
module load bio/beagle/5.2
module load bio/bcftools/

# loop throguh infile and phase using beagle
cat infile | while read i; do java -Xmx2g -jar /opt/bioinformatics/bio/beagle/beagle-5.2/beagle.28Jun21.220.jar gt=$i.vcf.gz out=$i.phased; done

# use bcftools to index all the outiles
cat infile | while read i; do bcftools index $i.phased.vcf.gz; done

# merge as out.7
# rememer out.6 was from the previous pipeline for missingness of indiv and genotyping
bcftools merge *phased.vcf.gz > out.7.phased.vcf.gz
14 changes: 14 additions & 0 deletions RAnalysis/Data/Popgen/02_phase_loci/infile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
vcf_F0
vcf_F1_broodstock_Low
vcf_F1_broodstock_Moderate
vcf_F1_juvenile_Low
vcf_F1_juvenile_Moderate
vcf_F2_broodstock_High
vcf_F2_broodstock_Low
vcf_F2_broodstock_Moderate
vcf_F2_juvenile_High
vcf_F2_juvenile_Low
vcf_F2_juvenile_Moderate
vcf_F3_juvenile_High
vcf_F3_juvenile_Low
vcf_F3_juvenile_Moderate
2,975 changes: 2,975 additions & 0 deletions RAnalysis/Data/Popgen/02_phase_loci/out.7.phased.vcf.gz

Large diffs are not rendered by default.

Loading

0 comments on commit f1af88f

Please sign in to comment.