Skip to content

Commit

Permalink
fix cpp11 string conversion #390
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejiang committed Aug 20, 2023
1 parent e8a22f2 commit 8e98446
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/getSingleCellExpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,14 @@ cpp11::writable::doubles_matrix<> cpp_getSingleCellExpressionByGate(cpp11::exter
cpp11::strings pops(markers_pops.at(i));
// merge the indices from multiple nodes for the same marker
for(int j = 0; j < pops.size(); ++j){
string pop = cpp11::as_cpp<std::string>(pops[j]);
VertexID u = gh.getNodeID(pop);
VertexID u = gh.getNodeID(pops[j]);
BoolVec ind = gh.getNodeProperty(u).getIndices();
if(j == 0)
indexList.at(i) = ind;
else{
transform(ind.begin(), ind.end(), indexList.at(i).begin(), indexList.at(i).begin(), logical_or<bool>());
}

}

}

cpp11::writable::doubles_matrix<> output = maskMatrix(indexList, data, threshold);
Expand Down

0 comments on commit 8e98446

Please sign in to comment.