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

ERROR: Variant physical position must be monotonically increasing. #128

Open
Tom159357 opened this issue Oct 9, 2024 · 1 comment
Open

Comments

@Tom159357
Copy link

 Dear author, hello. I encountered an issue while running selscan: ERROR: Variant physical position must be monotonically increasing.2__34 34 appears after	1__230155 230155
 My processing procedure is: 
  1. Remove the./. from the vcf file:
    vcftools --vcf "$vcf_file" --max-missing 1.0 --recode --stdout > No_missing.vcf
  2. Obtain vcf files of different lineage strains from the total vcf file:
    bcftools view -S $list1 $input_vcf -o 1_domestic.vcf
    bcftools view -S $list2 $input_vcf -o 1_ref.vcf
  3. Run selscan,:
    $selscan -- xpehh -- vcf $vcf_domestic -- vcf ref $vcf_ref -- pmap -- out --threads 2
    The output result will report an error:
    a49768d575467e72aa07f4d2af48532f
    When running selscan, is it necessary to split both vcf files into one sub vcf file with only one chromosome, and then perform two selscans? I am looking forward to your reply.
@szpiech
Copy link
Owner

szpiech commented Oct 9, 2024 via email

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

2 participants