Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PLINK: merge bed/bim/fam files error

    Hi,

    I was trying to merge several files (each chr has separate file) into one big file. I gave the following command:

    plink --noweb --bfile T2.chr1 --merge-list mylist.txt --make-bed --out T2

    but get the following error:

    ERROR: Cannot merge files. Check your MAP files.


    mylist.txt contains:

    T2.chr2.bed T2.chr2.bim T2.chr2.fam
    T2.chr3.bed T2.chr3.bim T2.chr3.fam
    T2.chr4.bed T2.chr4.bim T2.chr4.fam
    .
    .


    All the individual .fam files appear to be identical (same file size).

    What am I doing wrong?

    thanks.

  • #2
    Hey mate

    First suggestion I would be using plink 1.9 (don't have to worry about the annoying --noweb )

    Try a process of elimination.. do a basic loop to to merge each chromosome separately until you find the troublesome file

    But if it is error is related to a map file I am unsure why it is asking for that format.. you could try to --recode the data into Ped format and try merging...

    Just make sure in your mylist.txt that you use a tab separator

    This is a basic script out of one of my pipelines that might help you or might be totally useless but here it is anyways

    for i in {1..22}

    do

    plinknew --ped chr"$i".ped --map chr"$i".map --make-bed --noweb --out chr"$i"

    done



    ls *.bed > bed.txt
    ls *.bim > bim.txt
    ls *.fam > fam.txt

    paste bed.txt bim.txt fam.txt | column -s $'\t' -t > merge.temp.list

    grep -v -w "chr1." merge.temp.list > merge.list

    plinknew --bfile chr1 --merge-list merge.list --make-bed --out P67_raw

    Hope that helps in some way

    Cheers

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Essential Discoveries and Tools in Epitranscriptomics
      by seqadmin




      The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
      04-22-2024, 07:01 AM
    • seqadmin
      Current Approaches to Protein Sequencing
      by seqadmin


      Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
      04-04-2024, 04:25 PM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, Today, 11:49 AM
    0 responses
    13 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, Yesterday, 08:47 AM
    0 responses
    16 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-11-2024, 12:08 PM
    0 responses
    61 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 10:19 PM
    0 responses
    60 views
    0 likes
    Last Post seqadmin  
    Working...
    X