esrud / GONE

GONE: Scripts, programs and an example data set
42 stars 3 forks source link

Chromosome name causing run issues? #19

Open elizeng opened 1 year ago

elizeng commented 1 year ago

I am trying to run GONE with 10k and 100k SNPs for a non-human dataset, but seem to be getting the following error.

script_GONE.sh: line 71: ((: i<=CM020461.1: syntax error: invalid arithmetic operator (error token is ".1")
script_GONE.sh: line 81: ((: i<=CM020461.1: syntax error: invalid arithmetic operator (error token is ".1")
DIVIDE .ped AND .map FILES IN CHROMOSOMES
rm: cannot remove 'SNP_CHROM': No such file or directory
RUNNING ANALYSIS OF CHROMOSOMES ...
cp: cannot stat 'chromosome*': No such file or directory
xargs: bash: terminated by signal 11
xargs: bash: terminated by signal 11
CHROMOSOME ANALYSES took 0 seconds
cat: outfileLD18: No such file or directory
sed: can't read outfileLD18: No such file or directory
cat: parameters18: No such file or directory
cat: outfileLD19: No such file or directory
sed: can't read outfileLD19: No such file or directory
cat: parameters19: No such file or directory
cat: outfileLD20: No such file or directory
sed: can't read outfileLD20: No such file or directory
cat: parameters20: No such file or directory
cat: outfileLD21: No such file or directory
sed: can't read outfileLD21: No such file or directory
cat: parameters21: No such file or directory
cat: outfileLD22: No such file or directory
sed: can't read outfileLD22: No such file or directory
cat: parameters22: No such file or directory
cat: outfileLD23: No such file or directory
sed: can't read outfileLD23: No such file or directory
cat: parameters23: No such file or directory
cat: outfileLD24: No such file or directory
sed: can't read outfileLD24: No such file or directory
cat: parameters24: No such file or directory
cat: outfileLD25: No such file or directory
sed: can't read outfileLD25: No such file or directory
cat: parameters25: No such file or directory
mv: cannot stat 'chrom*': No such file or directory
Running GONE
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
  Error opening file outfileLD_TEMP/outfileLD_1_GONE_Nebest
 END OF ALL PROCESSES
GONE run took 0 seconds
END OF ANALYSES
mv: cannot stat 'outfileLD_Ne_estimates': No such file or directory
mv: cannot stat 'outfileLD_d2_sample': No such file or directory

The example dataset works fine. The only difference I can find is that the example dataset has chromosome numbers with just 1 number in the map file:

example.map
1 SNP1 0.000423 423
1 SNP2 0.005214 5214
1 SNP3 0.005887 5887
1 SNP6 0.008360 8360
1 SNP7 0.009697 9697
1 SNP8 0.009992 9992
1 SNP9 0.010005 10005

While my map file has chromosome numbers in a longer string. Is this potentially a problem? Would it be possible to accommodate more values in the chromosome column?


file.map
CM020437.1  CM020437.1_52624    0   52624
CM020437.1  CM020437.1_88726    0   88726
CM020437.1  CM020437.1_184413   0   184413
CM020437.1  CM020437.1_367805   0   367805
CM020437.1  CM020437.1_469570   0   469570
CM020437.1  CM020437.1_792952   0   792952
CM020437.1  CM020437.1_897723   0   897723

If anyone is able to suggest how I can rename the chromosome numbers without the whole string, I would be very thankful!

Much appreciated!

Edit: I used awk to change the chromosome names to just numbers within 200, and it now does not have the error that the chromosome can't be read. Although I am met with a new error, while running it on 10k SNPs and just 25 chromosomes that the outfiles can't be read.

DIVIDE .ped AND .map FILES IN CHROMOSOMES
RUNNING ANALYSIS OF CHROMOSOMES ...
xargs: bash: terminated by signal 11
CHROMOSOME ANALYSES took 18 seconds
cat: outfileLD63: No such file or directory
sed: can't read outfileLD63: No such file or directory
cat: parameters63: No such file or directory
cat: outfileLD64: No such file or directory
sed: can't read outfileLD64: No such file or directory
cat: parameters64: No such file or directory
cat: outfileLD65: No such file or directory
sed: can't read outfileLD65: No such file or directory
cat: parameters65: No such file or directory
cat: outfileLD66: No such file or directory
sed: can't read outfileLD66: No such file or directory
cat: parameters66: No such file or directory
cat: outfileLD67: No such file or directory
sed: can't read outfileLD67: No such file or directory
cat: parameters67: No such file or directory
cat: outfileLD68: No such file or directory
sed: can't read outfileLD68: No such file or directory
cat: parameters68: No such file or directory
cat: outfileLD69: No such file or directory
sed: can't read outfileLD69: No such file or directory
cat: parameters69: No such file or directory
cat: outfileLD70: No such file or directory
sed: can't read outfileLD70: No such file or directory
cat: parameters70: No such file or directory
cat: outfileLD71: No such file or directory
sed: can't read outfileLD71: No such file or directory
cat: parameters71: No such file or directory
cat: outfileLD72: No such file or directory
sed: can't read outfileLD72: No such file or directory
cat: parameters72: No such file or directory
cat: outfileLD73: No such file or directory
sed: can't read outfileLD73: No such file or directory
cat: parameters73: No such file or directory
cat: outfileLD74: No such file or directory
sed: can't read outfileLD74: No such file or directory
cat: parameters74: No such file or directory
cat: outfileLD75: No such file or directory
sed: can't read outfileLD75: No such file or directory
cat: parameters75: No such file or directory
cat: outfileLD76: No such file or directory
sed: can't read outfileLD76: No such file or directory
cat: parameters76: No such file or directory
cat: outfileLD77: No such file or directory
sed: can't read outfileLD77: No such file or directory
cat: parameters77: No such file or directory
cat: outfileLD78: No such file or directory
sed: can't read outfileLD78: No such file or directory
cat: parameters78: No such file or directory
cat: outfileLD79: No such file or directory
sed: can't read outfileLD79: No such file or directory
cat: parameters79: No such file or directory
cat: outfileLD80: No such file or directory
sed: can't read outfileLD80: No such file or directory
cat: parameters80: No such file or directory
cat: outfileLD81: No such file or directory
sed: can't read outfileLD81: No such file or directory
cat: parameters81: No such file or directory
cat: outfileLD82: No such file or directory
sed: can't read outfileLD82: No such file or directory
cat: parameters82: No such file or directory
cat: outfileLD83: No such file or directory
sed: can't read outfileLD83: No such file or directory
cat: parameters83: No such file or directory
cat: outfileLD84: No such file or directory
sed: can't read outfileLD84: No such file or directory
cat: parameters84: No such file or directory
cat: outfileLD85: No such file or directory
sed: can't read outfileLD85: No such file or directory
cat: parameters85: No such file or directory
cat: outfileLD86: No such file or directory
sed: can't read outfileLD86: No such file or directory
cat: parameters86: No such file or directory
cat: outfileLD87: No such file or directory
sed: can't read outfileLD87: No such file or directory
cat: parameters87: No such file or directory
cat: outfileLD88: No such file or directory
sed: can't read outfileLD88: No such file or directory
cat: parameters88: No such file or directory
cat: outfileLD89: No such file or directory
sed: can't read outfileLD89: No such file or directory
cat: parameters89: No such file or directory
cat: outfileLD90: No such file or directory
sed: can't read outfileLD90: No such file or directory
cat: parameters90: No such file or directory
cat: outfileLD91: No such file or directory
sed: can't read outfileLD91: No such file or directory
cat: parameters91: No such file or directory
cat: outfileLD92: No such file or directory
sed: can't read outfileLD92: No such file or directory
cat: parameters92: No such file or directory
cat: outfileLD93: No such file or directory
sed: can't read outfileLD93: No such file or directory
cat: parameters93: No such file or directory
cat: outfileLD94: No such file or directory
sed: can't read outfileLD94: No such file or directory
cat: parameters94: No such file or directory
cat: outfileLD95: No such file or directory
sed: can't read outfileLD95: No such file or directory
cat: parameters95: No such file or directory
cat: outfileLD96: No such file or directory
sed: can't read outfileLD96: No such file or directory
cat: parameters96: No such file or directory
cat: outfileLD97: No such file or directory
sed: can't read outfileLD97: No such file or directory
cat: parameters97: No such file or directory
cat: outfileLD98: No such file or directory
sed: can't read outfileLD98: No such file or directory
cat: parameters98: No such file or directory
cat: outfileLD99: No such file or directory
sed: can't read outfileLD99: No such file or directory
cat: parameters99: No such file or directory
cat: outfileLD100: No such file or directory
sed: can't read outfileLD100: No such file or directory
cat: parameters100: No such file or directory
cat: outfileLD101: No such file or directory
sed: can't read outfileLD101: No such file or directory
cat: parameters101: No such file or directory
cat: outfileLD102: No such file or directory
sed: can't read outfileLD102: No such file or directory
cat: parameters102: No such file or directory
cat: outfileLD103: No such file or directory
sed: can't read outfileLD103: No such file or directory
cat: parameters103: No such file or directory
cat: outfileLD104: No such file or directory
sed: can't read outfileLD104: No such file or directory
cat: parameters104: No such file or directory
cat: outfileLD105: No such file or directory
sed: can't read outfileLD105: No such file or directory
cat: parameters105: No such file or directory
cat: outfileLD106: No such file or directory
sed: can't read outfileLD106: No such file or directory
cat: parameters106: No such file or directory
cat: outfileLD107: No such file or directory
sed: can't read outfileLD107: No such file or directory
cat: parameters107: No such file or directory
cat: outfileLD108: No such file or directory
sed: can't read outfileLD108: No such file or directory
cat: parameters108: No such file or directory
cat: outfileLD109: No such file or directory
sed: can't read outfileLD109: No such file or directory
cat: parameters109: No such file or directory
cat: outfileLD110: No such file or directory
sed: can't read outfileLD110: No such file or directory
cat: parameters110: No such file or directory
cat: outfileLD111: No such file or directory
sed: can't read outfileLD111: No such file or directory
cat: parameters111: No such file or directory
cat: outfileLD112: No such file or directory
sed: can't read outfileLD112: No such file or directory
cat: parameters112: No such file or directory
cat: outfileLD113: No such file or directory
sed: can't read outfileLD113: No such file or directory
cat: parameters113: No such file or directory
cat: outfileLD114: No such file or directory
sed: can't read outfileLD114: No such file or directory
cat: parameters114: No such file or directory
cat: outfileLD115: No such file or directory
sed: can't read outfileLD115: No such file or directory
cat: parameters115: No such file or directory
cat: outfileLD116: No such file or directory
sed: can't read outfileLD116: No such file or directory
cat: parameters116: No such file or directory
cat: outfileLD117: No such file or directory
sed: can't read outfileLD117: No such file or directory
cat: parameters117: No such file or directory
cat: outfileLD118: No such file or directory
sed: can't read outfileLD118: No such file or directory
cat: parameters118: No such file or directory
cat: outfileLD119: No such file or directory
sed: can't read outfileLD119: No such file or directory
cat: parameters119: No such file or directory
cat: outfileLD120: No such file or directory
sed: can't read outfileLD120: No such file or directory
cat: parameters120: No such file or directory
cat: outfileLD121: No such file or directory
sed: can't read outfileLD121: No such file or directory
cat: parameters121: No such file or directory
cat: outfileLD122: No such file or directory
sed: can't read outfileLD122: No such file or directory
cat: parameters122: No such file or directory
cat: outfileLD123: No such file or directory
sed: can't read outfileLD123: No such file or directory
cat: parameters123: No such file or directory
cat: outfileLD124: No such file or directory
sed: can't read outfileLD124: No such file or directory
cat: parameters124: No such file or directory
cat: outfileLD125: No such file or directory
sed: can't read outfileLD125: No such file or directory
cat: parameters125: No such file or directory
cat: outfileLD126: No such file or directory
sed: can't read outfileLD126: No such file or directory
cat: parameters126: No such file or directory
cat: outfileLD127: No such file or directory
sed: can't read outfileLD127: No such file or directory
cat: parameters127: No such file or directory
cat: outfileLD128: No such file or directory
sed: can't read outfileLD128: No such file or directory
cat: parameters128: No such file or directory
cat: outfileLD129: No such file or directory
sed: can't read outfileLD129: No such file or directory
cat: parameters129: No such file or directory
cat: outfileLD130: No such file or directory
sed: can't read outfileLD130: No such file or directory
cat: parameters130: No such file or directory
cat: outfileLD131: No such file or directory
sed: can't read outfileLD131: No such file or directory
cat: parameters131: No such file or directory
cat: outfileLD132: No such file or directory
sed: can't read outfileLD132: No such file or directory
cat: parameters132: No such file or directory
cat: outfileLD133: No such file or directory
sed: can't read outfileLD133: No such file or directory
cat: parameters133: No such file or directory
cat: outfileLD134: No such file or directory
sed: can't read outfileLD134: No such file or directory
cat: parameters134: No such file or directory
cat: outfileLD135: No such file or directory
sed: can't read outfileLD135: No such file or directory
cat: parameters135: No such file or directory
cat: outfileLD136: No such file or directory
sed: can't read outfileLD136: No such file or directory
cat: parameters136: No such file or directory
cat: outfileLD137: No such file or directory
sed: can't read outfileLD137: No such file or directory
cat: parameters137: No such file or directory
cat: outfileLD138: No such file or directory
sed: can't read outfileLD138: No such file or directory
cat: parameters138: No such file or directory
cat: outfileLD139: No such file or directory
sed: can't read outfileLD139: No such file or directory
cat: parameters139: No such file or directory
cat: outfileLD140: No such file or directory
sed: can't read outfileLD140: No such file or directory
cat: parameters140: No such file or directory
cat: outfileLD141: No such file or directory
sed: can't read outfileLD141: No such file or directory
cat: parameters141: No such file or directory
cat: outfileLD142: No such file or directory
sed: can't read outfileLD142: No such file or directory
cat: parameters142: No such file or directory
cat: outfileLD143: No such file or directory
sed: can't read outfileLD143: No such file or directory
cat: parameters143: No such file or directory
cat: outfileLD144: No such file or directory
sed: can't read outfileLD144: No such file or directory
cat: parameters144: No such file or directory
cat: outfileLD145: No such file or directory
sed: can't read outfileLD145: No such file or directory
cat: parameters145: No such file or directory
cat: outfileLD146: No such file or directory
sed: can't read outfileLD146: No such file or directory
cat: parameters146: No such file or directory
cat: outfileLD147: No such file or directory
sed: can't read outfileLD147: No such file or directory
cat: parameters147: No such file or directory
cat: outfileLD148: No such file or directory
sed: can't read outfileLD148: No such file or directory
cat: parameters148: No such file or directory
cat: outfileLD149: No such file or directory
sed: can't read outfileLD149: No such file or directory
cat: parameters149: No such file or directory
cat: outfileLD150: No such file or directory
sed: can't read outfileLD150: No such file or directory
cat: parameters150: No such file or directory
cat: outfileLD151: No such file or directory
sed: can't read outfileLD151: No such file or directory
cat: parameters151: No such file or directory
cat: outfileLD152: No such file or directory
sed: can't read outfileLD152: No such file or directory
cat: parameters152: No such file or directory
cat: outfileLD153: No such file or directory
sed: can't read outfileLD153: No such file or directory
cat: parameters153: No such file or directory
cat: outfileLD154: No such file or directory
sed: can't read outfileLD154: No such file or directory
cat: parameters154: No such file or directory
cat: outfileLD155: No such file or directory
sed: can't read outfileLD155: No such file or directory
cat: parameters155: No such file or directory
cat: outfileLD156: No such file or directory
sed: can't read outfileLD156: No such file or directory
cat: parameters156: No such file or directory
cat: outfileLD157: No such file or directory
sed: can't read outfileLD157: No such file or directory
cat: parameters157: No such file or directory
cat: outfileLD158: No such file or directory
sed: can't read outfileLD158: No such file or directory
cat: parameters158: No such file or directory
cat: outfileLD159: No such file or directory
sed: can't read outfileLD159: No such file or directory
cat: parameters159: No such file or directory
cat: outfileLD160: No such file or directory
sed: can't read outfileLD160: No such file or directory
cat: parameters160: No such file or directory
cat: outfileLD161: No such file or directory
sed: can't read outfileLD161: No such file or directory
cat: parameters161: No such file or directory
cat: outfileLD162: No such file or directory
sed: can't read outfileLD162: No such file or directory
cat: parameters162: No such file or directory
cat: outfileLD163: No such file or directory
sed: can't read outfileLD163: No such file or directory
cat: parameters163: No such file or directory
cat: outfileLD164: No such file or directory
sed: can't read outfileLD164: No such file or directory
cat: parameters164: No such file or directory
cat: outfileLD165: No such file or directory
sed: can't read outfileLD165: No such file or directory
cat: parameters165: No such file or directory
cat: outfileLD166: No such file or directory
sed: can't read outfileLD166: No such file or directory
cat: parameters166: No such file or directory
cat: outfileLD167: No such file or directory
sed: can't read outfileLD167: No such file or directory
cat: parameters167: No such file or directory
cat: outfileLD168: No such file or directory
sed: can't read outfileLD168: No such file or directory
cat: parameters168: No such file or directory
cat: outfileLD169: No such file or directory
sed: can't read outfileLD169: No such file or directory
cat: parameters169: No such file or directory
cat: outfileLD170: No such file or directory
sed: can't read outfileLD170: No such file or directory
cat: parameters170: No such file or directory
cat: outfileLD171: No such file or directory
sed: can't read outfileLD171: No such file or directory
cat: parameters171: No such file or directory
cat: outfileLD172: No such file or directory
sed: can't read outfileLD172: No such file or directory
cat: parameters172: No such file or directory
cat: outfileLD173: No such file or directory
sed: can't read outfileLD173: No such file or directory
cat: parameters173: No such file or directory
cat: outfileLD174: No such file or directory
sed: can't read outfileLD174: No such file or directory
cat: parameters174: No such file or directory
cat: outfileLD175: No such file or directory
sed: can't read outfileLD175: No such file or directory
cat: parameters175: No such file or directory
cat: outfileLD176: No such file or directory
sed: can't read outfileLD176: No such file or directory
cat: parameters176: No such file or directory
cat: outfileLD177: No such file or directory
sed: can't read outfileLD177: No such file or directory
cat: parameters177: No such file or directory
cat: outfileLD178: No such file or directory
sed: can't read outfileLD178: No such file or directory
cat: parameters178: No such file or directory
cat: outfileLD179: No such file or directory
sed: can't read outfileLD179: No such file or directory
cat: parameters179: No such file or directory
cat: outfileLD180: No such file or directory
sed: can't read outfileLD180: No such file or directory
cat: parameters180: No such file or directory
cat: outfileLD181: No such file or directory
sed: can't read outfileLD181: No such file or directory
cat: parameters181: No such file or directory
cat: outfileLD182: No such file or directory
sed: can't read outfileLD182: No such file or directory
cat: parameters182: No such file or directory
cat: outfileLD183: No such file or directory
sed: can't read outfileLD183: No such file or directory
cat: parameters183: No such file or directory
cat: outfileLD184: No such file or directory
sed: can't read outfileLD184: No such file or directory
cat: parameters184: No such file or directory
cat: outfileLD185: No such file or directory
sed: can't read outfileLD185: No such file or directory
cat: parameters185: No such file or directory
cat: outfileLD186: No such file or directory
sed: can't read outfileLD186: No such file or directory
cat: parameters186: No such file or directory
cat: outfileLD187: No such file or directory
sed: can't read outfileLD187: No such file or directory
cat: parameters187: No such file or directory
cat: outfileLD188: No such file or directory
sed: can't read outfileLD188: No such file or directory
cat: parameters188: No such file or directory
cat: outfileLD189: No such file or directory
sed: can't read outfileLD189: No such file or directory
cat: parameters189: No such file or directory
cat: outfileLD190: No such file or directory
sed: can't read outfileLD190: No such file or directory
cat: parameters190: No such file or directory
cat: outfileLD191: No such file or directory
sed: can't read outfileLD191: No such file or directory
cat: parameters191: No such file or directory
cat: outfileLD192: No such file or directory
sed: can't read outfileLD192: No such file or directory
cat: parameters192: No such file or directory
cat: outfileLD193: No such file or directory
sed: can't read outfileLD193: No such file or directory
cat: parameters193: No such file or directory
cat: outfileLD194: No such file or directory
sed: can't read outfileLD194: No such file or directory
cat: parameters194: No such file or directory
cat: outfileLD195: No such file or directory
sed: can't read outfileLD195: No such file or directory
cat: parameters195: No such file or directory
cat: outfileLD196: No such file or directory
sed: can't read outfileLD196: No such file or directory
cat: parameters196: No such file or directory
cat: outfileLD197: No such file or directory
sed: can't read outfileLD197: No such file or directory
cat: parameters197: No such file or directory
cat: outfileLD198: No such file or directory
sed: can't read outfileLD198: No such file or directory
cat: parameters198: No such file or directory
cat: outfileLD199: No such file or directory
sed: can't read outfileLD199: No such file or directory
cat: parameters199: No such file or directory
cat: outfileLD200: No such file or directory
sed: can't read outfileLD200: No such file or directory
cat: parameters200: No such file or directory
Running GONE
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
 Specify a valid code for type of genotyping data (0, 1 or 2).
  Error opening file outfileLD_TEMP/outfileLD_1_GONE_Nebest
 END OF ALL PROCESSES
GONE run took 0 seconds
END OF ANALYSES
mv: cannot stat 'outfileLD_Ne_estimates': No such file or directory
mv: cannot stat 'outfileLD_d2_sample': No such file or directory
armando-caballero commented 1 year ago

If you show me the input files I may tell you what is not going well. Best wishes, Armando.

kellybarr commented 1 year ago

Try clearing your folder of old output files from GONE. It seems to have errors when certain old files are still around.

alexkrohn commented 9 months ago

example-data.zip

Hi @armando-caballero. I am having a similar issue. I also changed the chromosome names, but now am getting a similar error that GONE runs into a format error of outfileLD.

I generated my PLINK files using VCFTools, and changed the chromosome names into a sequence from 1 to the number of "chromosomes" (= scaffolds). There are ~10K SNPs from 322 individuals on 42 chromosomes.

Any suggestions?

@elizeng were you able to resolve your issue?

Here's my error information:

DIVIDE .ped AND .map FILES IN CHROMOSOMES
RUNNING ANALYSIS OF CHROMOSOMES ...
CHROMOSOME ANALYSES took 0 seconds
Running GONE
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
  Error opening file outfileLD_TEMP/outfileLD_1_GONE_Nebest
 END OF ALL PROCESSES
GONE run took 0 seconds
END OF ANALYSES
mv: cannot stat 'outfileLD_Ne_estimates': No such file or directory
mv: cannot stat 'outfileLD_d2_sample': No such file or directory
armando-caballero commented 9 months ago

I cannot tell you unless I see your input files. If you want to send them to me (better a small sample with the same problem) I will have a look. Armando.

alexkrohn commented 9 months ago

Hi Armando. They're attached in the previous comment as example-data.zip. Also here: example-data.zip

armando-caballero commented 9 months ago

There are two issues: (1) Your ped file should be: LICA026001 LICA026001 0 0 0 -9 A A .... (2) Even so does not run. And the reason is that you have too many zeros. If more that half the individuals have missing data, that SNP is not considered and this happens with all of them. For example, in the PARAMETERS file you can see for chhromosome 1 that from 1293 SNPs all are considered as zeroes (more than half of the individuals have missing data):

CHROMOSOME 1 NIND(real sample)=322 NSNP=1293 NSNPcalculations=0 NSNP+2alleles=0 NSNP_zeroes=1293 NSNP_monomorphic=0

etc. for all chromosomes

Armando

alexkrohn commented 9 months ago

Thanks Armando, that got it working! From this postabout RADseq data, I had included most of my SNPs, but I see now that I need to limit them somewhat because of missing data. After subsetting a bit, GONE seems to work!

However, I still seem to get the large spike in Ne around 180 or so generations. This occurs even if I decrease hc to 0.025. Do you have any suggestions for how to evaluate the efficacy of the runs?

I'm running each subpopulation of the species separately, so there shouldn't be strong population structure among the individuals. There might be some inbreeding though. Might that be causing the observed crash and then rebound in Ne? I would expect a crash without recovery sometime between 10 and ~100 generations generations ago.

Here's the output with hc = 0.025. It is very similar to hc = 0.05 hc-025

armando-caballero commented 9 months ago

It looks ugly. I cannot tell you. The limiting time for reliability should be no more than 200 generations. 180 is very close to that. Perhaphs you should only focus on the last 50 generations or so. But the sharp decline in the last 4 generations can be real or an artefact of sampling, not necessarily substructure in the population but also a non-random sampling .... Armando.

xiaocanna commented 9 months ago

example-data.zip

Hi @armando-caballero. I am having a similar issue. I also changed the chromosome names, but now am getting a similar error that GONE runs into a format error of outfileLD.

I generated my PLINK files using VCFTools, and changed the chromosome names into a sequence from 1 to the number of "chromosomes" (= scaffolds). There are ~10K SNPs from 322 individuals on 42 chromosomes.

Any suggestions?

@elizeng were you able to resolve your issue?

Here's my error information:

DIVIDE .ped AND .map FILES IN CHROMOSOMES
RUNNING ANALYSIS OF CHROMOSOMES ...
CHROMOSOME ANALYSES took 0 seconds
Running GONE
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
 Format error in file outfileLD
  Error opening file outfileLD_TEMP/outfileLD_1_GONE_Nebest
 END OF ALL PROCESSES
GONE run took 0 seconds
END OF ANALYSES
mv: cannot stat 'outfileLD_Ne_estimates': No such file or directory
mv: cannot stat 'outfileLD_d2_sample': No such file or directory

hi @alexkrohn @armando-caballeroi have the same issue with too many zeros in my example.ped. but i don't known how to solve this problem. should i delect all the zero? Here's my error informatiom:

DIVIDE` .ped AND .map FILES IN CHROMOSOMES RUNNING ANALYSIS OF CHROMOSOMES ... CHROMOSOME ANALYSES took 22 seconds Running GONE Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file Format error in file outfileLD outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Format error in file outfileLD Error opening file outfileLD_TEMP/outfileLD_1_GONE_Nebest END OF ALL PROCESSES GONE run took 0 seconds END OF ANALYSES mv: cannot stat 鈕utfileLD_Ne_estimates? No such file or directory mv: cannot stat 鈕utfileLD_d2_sample? No such file or directory

armando-caballero commented 9 months ago

I only can reply you if I see an example of your files. best wishes, Armando.

armando-caballero commented 9 months ago

For the first individual (01-1) I have counted 133860 SNPs in the ped file, i.e. 66930 genotypes. However, your map file has only 62941 lines. Please check it. In addition you better call the SNPs like this: 1 SNP1 0 337795 1 SNP2 0 438698 1 SNP3 0 438701 1 SNP4 0 438702

Armando.

armando-caballero commented 9 months ago

RESPONSE to xiaocanna notifications@github.com

There are chromosomes with one or two SNPs only, or a few. If you run say the first 10 chromosomes, it works, though the results are Ne of millions.

maxNCHROM=10 ### Maximum number of chromosomes to be analysed (-99 = all chromosomes)

Armando.