Commit f8d9a07e authored by thpar's avatar thpar
Browse files

Check for CDS not null before running WGD.

parent 6fff4400
...@@ -227,6 +227,7 @@ species_new_id ...@@ -227,6 +227,7 @@ species_new_id
cdsMap = species_cds_map cdsMap = species_cds_map
.reduce([:]) { theMap, newMapping -> theMap[newMapping.name] = newMapping.cds; return theMap } .reduce([:]) { theMap, newMapping -> theMap[newMapping.name] = newMapping.cds; return theMap }
print(cdsMap)
allSpecies allSpecies
.collectSpeciesFile() .collectSpeciesFile()
...@@ -1045,7 +1046,7 @@ process clime { ...@@ -1045,7 +1046,7 @@ process clime {
//not supply a CDS file. //not supply a CDS file.
allVsAllProteomeBlasts_wgd allVsAllProteomeBlasts_wgd
.filter { it[1] == newSpeciesId.value } .filter { it[1] == newSpeciesId.value }
.filter { cdsMap[it[1]].value != '' && cdsMap[it[2]].value != '' } .filter { cdsMap[it[1]] && cdsMap[it[2]] }
.set { new_species_blasts } .set { new_species_blasts }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment