Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When running: plink --vcf my.vcf --make-bed --out sex/plink An error was occured, please check the parameters! #7

Open
UndressK opened this issue Jun 3, 2023 · 9 comments

Comments

@UndressK
Copy link

UndressK commented Jun 3, 2023

Hello,

I am getting an error when trying to run the software. Here is my code:

seGMM --vcf my.vcf \
              --input bam.file --alignment_format BAM \
              --reference_additional ~/resources/seGMM/ref_1000G_WES.txt \
              -t WES -o sex -g hg38

bam.file:
S1001 ~/data/S1001/S1001.bam

Any ideas why is failing?
Thank you!

@liusihan
Copy link
Owner

liusihan commented Jun 5, 2023

Hello,

Was there any presence of abnormal chromosomes other than chr1 to chr22, chrX, and chrY in your VCF file? It seems that the issue with seGMM arises when the input VCF contains ALT contigs such as chrX_KI270880v1_alt. Please refer to similar questions in #6.

Thank you!

@UndressK
Copy link
Author

UndressK commented Jun 5, 2023 via email

@UndressK
Copy link
Author

UndressK commented Jun 5, 2023

I tried renaming the chromosomes by appending "chr" to CHROM column, but I am still getting the same error.

@liusihan
Copy link
Owner

liusihan commented Jun 6, 2023

Hi Andrés,

seGMM has the capability to predict sex using a VCF file that contains chromosomes named with or without the "chr" prefix. If possible, could you upload the vcf file you used or try the plink code as follows: plink --vcf vcffile --make-bed --out output --allow-extra-chr.

Sihan

@UndressK
Copy link
Author

UndressK commented Jun 6, 2023 via email

@liusihan
Copy link
Owner

liusihan commented Jun 7, 2023

Hi Andrés,

You need to activate the seGMM environment with conda and run the plink code in a shell window.

@UndressK
Copy link
Author

UndressK commented Jun 7, 2023 via email

@liusihan
Copy link
Owner

liusihan commented Jun 8, 2023

Please test the code as follows:

(base) [shliu@admin1 ~]$ conda activate seGMM
(seGMM) [shliu@admin1 ~]$ ls
test.vcf
(seGMM) [shliu@admin1 ~]$ plink --vcf test.vcf --make-bed --out test0608 --allow-extra-chr
PLINK v1.90b6.21 64-bit (19 Oct 2020)          www.cog-genomics.org/plink/1.9/
(C) 2005-2020 Shaun Purcell, Christopher Chang   GNU General Public License v3
Logging to test0608.log.
Options in effect:
  --allow-extra-chr
  --make-bed
  --out test0608
  --vcf test.vcf

257437 MB RAM detected; reserving 128718 MB for main workspace.
--vcf: test0608-temporary.bed + test0608-temporary.bim + test0608-temporary.fam
written.
145345 variants loaded from .bim file.
10 people (0 males, 0 females, 10 ambiguous) loaded from .fam.
Ambiguous sex IDs written to test0608.nosex .
Using 1 thread (no multithreaded calculations invoked).
Before main variant filters, 10 founders and 0 nonfounders present.
Calculating allele frequencies... done.
Total genotyping rate is 0.0529802.
145345 variants and 10 people pass filters and QC.
Note: No phenotypes present.
--make-bed to test0608.bed + test0608.bim + test0608.fam ... done.


@vikramadhithyaThotam22
Copy link

after that how to find the sex determination using seGMM tool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants