This is a very simple fix. Please check the file change.
I think the purpose of the last lines of get_cn_states would be to sort the columns of the output, but actually they just incorrectly change the column names (gene IDs). Below I show some examples to replicate this error.
The output of code 1 and code 2 should be the same:
In the next example, I just inverted the row order of the regions_bed argument input (regions_bed1 and regions_bed2 dataframes). As you can see, the elements of the output dataframe are the same, while only the column names are inverted. Both get_cn_states calls should return the same output.
This is a very simple fix. Please check the file change.
I think the purpose of the last lines of
get_cn_states
would be to sort the columns of the output, but actually they just incorrectly change the column names (gene IDs). Below I show some examples to replicate this error.The output of code 1 and code 2 should be the same:
In the next example, I just inverted the row order of the
regions_bed
argument input (regions_bed1
andregions_bed2
dataframes). As you can see, the elements of the output dataframe are the same, while only the column names are inverted. Bothget_cn_states
calls should return the same output.Pull Request Checklists
Checklist for all PRs
Required
The same output here:
And the same output here: