-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
69 changed files
with
19,104 additions
and
124 deletions.
There are no files selected for viewing
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
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 |
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
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
2,975
RAnalysis/Data/Popgen/02_phase_loci/out.7.phased.vcf.gz
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.