browning-lab / flare

The flare program performs local ancestry inference
31 stars 7 forks source link

Convert FLARE to GDS file for use in GENESIS #18

Closed qyang10 closed 1 month ago

qyang10 commented 1 month ago

Hi, We are trying to use output from FLARE to perform admixture mapping using admixMap() in GENESIS. Could you offer a suggestion on on how to split the FLARE output, a VCF file with ancestry probabilities, in our case ANP1:ANP2 of 5 ancestries to 5 ancestry specific files, each with ancestry probabilities for a single ancestry? Or any other way to reformat FLARE output in order to use admixMap()? Thanks so much! Sorry to ask something that is not an issue of your program at all. Qiong

browning-lab commented 1 month ago

Dear Qiong, I am not familiar with the format required by admixMap(). When I need to manipulate the data in a VCF file, Linux command line utilities are usually sufficient to accomplish the task. The zcat, cut, tr, and sed Linux utilities are useful for manipulating VCF data.

Best regards,

Brian

On Wed, Sep 11, 2024 at 10:46 AM qyang10 @.***> wrote:

Hi, We are trying to use output from FLARE to perform admixture mapping using admixMap() in GENESIS. Could you offer a suggestion on on how to split the FLARE output, a VCF file with ancestry probabilities, in our case ANP1:ANP2 of 5 ancestries to 5 ancestry specific files, each with ancestry probabilities for a single ancestry? Or any other way to reformat FLARE output in order to use admixMap()? Thanks so much! Sorry to ask something that is not an issue of your program at all. Qiong

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/browning-lab/flare/issues/18__;!!K-Hz7m0Vt54!ids9mAh0LnzC3pRk_CTur_ZkD13pdhuRZdM4c7q8FbtUom-AAJBrF5jF0tbVJcHLK6CT9dAZ7pnjX7WXv_2yEZwExeMUv9s$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AKDWBPA6LGLVOCVV36CFJP3ZWB6YDAVCNFSM6AAAAABOBPHNY2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGUZDAMZXGY4DGOI__;!!K-Hz7m0Vt54!ids9mAh0LnzC3pRk_CTur_ZkD13pdhuRZdM4c7q8FbtUom-AAJBrF5jF0tbVJcHLK6CT9dAZ7pnjX7WXv_2yEZwERCSwNs4$ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

qyang10 commented 1 month ago

Thanks so much for the quick answer Brian! Thank for sharing your experience that simple Linux command line can accomplish the task of manipulating VCF data. Best, Qiong