Giter VIP home page Giter VIP logo

Comments (4)

cc2qe avatar cc2qe commented on September 24, 2024

It should be a text file with each VCF filepath on a separate line. here's an example showing merging in batches of 200 samples, and finally into a VCF of the whole cohort

pwd
# /gscmnt/gc2719/halllab/users/cchiang/dev/vcf_paste_2016-01-04

wc -l /gscmnt/gc2802/halllab/sv_aggregate/merge/re-GT/all.cn.txt
# 4907 /gscmnt/gc2802/halllab/sv_aggregate/merge/re-GT/all.cn.txt

mkdir -p split
split -a 2 -d -l 200 /gscmnt/gc2802/halllab/sv_aggregate/merge/re-GT/all.cn.txt split/spl

# 2 hour 2 min
# commit (svtyper): 2b24a61503eab8274d659e70da357030614c9727
for FILE in `ls split`
do
    bomb -m 8 "/gscmnt/gc2719/halllab/users/cchiang/src/svtyper/scripts/vcf_paste.py -q -f split/$FILE | gzip -c > $FILE.vcf.gz"
done

ls spl*.vcf.gz > batch_paste.txt

bomb -m 1 "/gscmnt/gc2719/halllab/users/cchiang/src/svtyper/scripts/vcf_paste.py -q -f batch_paste.txt | bgzip -c > final.vcf.gz"

from svtools.

ryanlayer avatar ryanlayer commented on September 24, 2024

Ah. So -f expects a FILE of files, not a list of files (as the usage
states).

On Fri, Feb 12, 2016 at 11:15 AM, Colby Chiang [email protected]
wrote:

should work with each VCF filepath on a separate line. here's an example
showing merging in batches of 200 samples, and finally into a VCF of the
whole cohort

pwd# /gscmnt/gc2719/halllab/users/cchiang/dev/vcf_paste_2016-01-04

wc -l /gscmnt/gc2802/halllab/sv_aggregate/merge/re-GT/all.cn.txt# 4907 /gscmnt/gc2802/halllab/sv_aggregate/merge/re-GT/all.cn.txt

mkdir -p split
split -a 2 -d -l 200 /gscmnt/gc2802/halllab/sv_aggregate/merge/re-GT/all.cn.txt split/spl

2 hour 2 min# commit (svtyper): 2b24a61503eab8274d659e70da357030614c9727for FILE in ls splitdo

bomb -m 8 "/gscmnt/gc2719/halllab/users/cchiang/src/svtyper/scripts/vcf_paste.py -q -f split/$FILE | gzip -c > $FILE.vcf.gz"done

ls spl*.vcf.gz > batch_paste.txt

bomb -m 1 "/gscmnt/gc2719/halllab/users/cchiang/src/svtyper/scripts/vcf_paste.py -q -f batch_paste.txt | bgzip -c > final.vcf.gz"


Reply to this email directly or view it on GitHub
#44 (comment).

Ryan Layer

from svtools.

ryanlayer avatar ryanlayer commented on September 24, 2024

This seems to work too:

svtools vcfpaste -f <(ls *vcf)

On Fri, Feb 12, 2016 at 11:39 AM, Ryan Layer [email protected] wrote:

Ah. So -f expects a FILE of files, not a list of files (as the usage
states).

On Fri, Feb 12, 2016 at 11:15 AM, Colby Chiang [email protected]
wrote:

should work with each VCF filepath on a separate line. here's an example
showing merging in batches of 200 samples, and finally into a VCF of the
whole cohort

pwd# /gscmnt/gc2719/halllab/users/cchiang/dev/vcf_paste_2016-01-04

wc -l /gscmnt/gc2802/halllab/sv_aggregate/merge/re-GT/all.cn.txt# 4907 /gscmnt/gc2802/halllab/sv_aggregate/merge/re-GT/all.cn.txt

mkdir -p split
split -a 2 -d -l 200 /gscmnt/gc2802/halllab/sv_aggregate/merge/re-GT/all.cn.txt split/spl

2 hour 2 min# commit (svtyper): 2b24a61503eab8274d659e70da357030614c9727for FILE in ls splitdo

bomb -m 8 "/gscmnt/gc2719/halllab/users/cchiang/src/svtyper/scripts/vcf_paste.py -q -f split/$FILE | gzip -c > $FILE.vcf.gz"done

ls spl*.vcf.gz > batch_paste.txt

bomb -m 1 "/gscmnt/gc2719/halllab/users/cchiang/src/svtyper/scripts/vcf_paste.py -q -f batch_paste.txt | bgzip -c > final.vcf.gz"


Reply to this email directly or view it on GitHub
#44 (comment).

Ryan Layer

Ryan Layer

from svtools.

cc2qe avatar cc2qe commented on September 24, 2024

i'm actually just going to reopen this so we remember to clarify the usage

from svtools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.