Skip to content

Commit

Permalink
GMYC_spec -> Delim_spec for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
tokebe committed Feb 19, 2021
1 parent e4ed159 commit 9acd772
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions niclassify/core/StandardProgram.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def mp_delim(arg):

# rename delims with order prefix
delim = utilities.get_data(arg[3])
delim["GMYC_spec"] = arg[0] + delim["GMYC_spec"].astype(str)
delim["Delim_spec"] = arg[0] + delim["Delim_spec"].astype(str)
delim.to_csv(arg[3], sep="\t", index=False)


Expand Down Expand Up @@ -472,7 +472,7 @@ def check_r_working(self, cb=None):
if cb is not None:
cb()
return False

def check_single_split(self, data, cb=None):
"""
Check if splitting data by taxon split level would return subsets of
Expand Down
18 changes: 9 additions & 9 deletions niclassify/core/scripts/create_measures.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ dnaDist <- melt(dnaDist)
### Add species groups to distance table ###
dnaDist <- dnaDist %>%
left_join(speciesNames, by = c("Var1" = "sample_name")) %>%
rename(Var1_group = GMYC_spec) %>%
rename(Var1_group = Delim_spec) %>%
left_join(speciesNames, by = c("Var2" = "sample_name")) %>%
rename(Var2_group = GMYC_spec)
rename(Var2_group = Delim_spec)

### Create summary statistics ###
dnaDistAggregated <- dnaDist %>%
Expand All @@ -80,7 +80,7 @@ dnaDistAggregated <- dnaDist %>%

### Join with sample names in preparation for output ###
groups_metrics <- dnaDistAggregated %>%
right_join(speciesNames, by = c("Var1_group" = "GMYC_spec")) %>%
right_join(speciesNames, by = c("Var1_group" = "Delim_spec")) %>%
rename(species_group = Var1_group)


Expand All @@ -91,9 +91,9 @@ aaDist <- melt(aaDist)
### Add species groups to distance table ###
aaDist <- aaDist %>%
left_join(speciesNames, by = c("Var1" = "sample_name")) %>%
rename(Var1_group = GMYC_spec) %>%
rename(Var1_group = Delim_spec) %>%
left_join(speciesNames, by = c("Var2" = "sample_name")) %>%
rename(Var2_group = GMYC_spec)
rename(Var2_group = Delim_spec)

### Create summary statistics ###
aaDistAggregated <- aaDist %>%
Expand Down Expand Up @@ -124,9 +124,9 @@ if (!is.atomic(seqKaKs)) {
### Add species groups to distance table ###
kaDist <- kaDist %>%
left_join(speciesNames, by = c("Var1" = "sample_name")) %>%
rename(Var1_group = GMYC_spec) %>%
rename(Var1_group = Delim_spec) %>%
left_join(speciesNames, by = c("Var2" = "sample_name")) %>%
rename(Var2_group = GMYC_spec)
rename(Var2_group = Delim_spec)

### Create summary statistics ###
kaDistAggregated <- kaDist %>%
Expand Down Expand Up @@ -156,9 +156,9 @@ if (!is.atomic(seqKaKs)) {
### Add species groups to distance table ###
ksDist <- ksDist %>%
left_join(speciesNames, by = c("Var1" = "sample_name")) %>%
rename(Var1_group = GMYC_spec) %>%
rename(Var1_group = Delim_spec) %>%
left_join(speciesNames, by = c("Var2" = "sample_name")) %>%
rename(Var2_group = GMYC_spec)
rename(Var2_group = Delim_spec)

### Create summary statistics ###
ksDistAggregated <- ksDist %>%
Expand Down
2 changes: 1 addition & 1 deletion niclassify/core/utilities/general_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}

with pkg_resources.path(config, _icon_to_use[PLATFORM]) as p:
PROGRAM_ICON = str(p) if platform == 'Windows' else "@" + str(p)
PROGRAM_ICON = str(p) if PLATFORM == 'Windows' else "@" + str(p)

if PLATFORM == "Windows":
with pkg_resources.open_text(config, "rloc.txt") as rloc:
Expand Down

0 comments on commit 9acd772

Please sign in to comment.