You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importkProcessoraskpimportnumpyasnpimportpandasaspdgenesFrame=kp.kDataFramePHMAP(21)
genes_file="human_pc.part_002.fa"chunkSize=10000cKF=kp.index(genesFrame, {"kSize": genesFrame.ksize()}, genes_file, chunkSize, f"{genes_file}.names")
# Create a zeros numpy 2d array with type unsigned long long with the size of the kDataFramenp_array=np.zeros(shape=(2,genesFrame.size()), dtype=np.ulonglong)
# Load the kDataFrame into the numpy arraygenesFrame.to_numpy(np_array)
df=pd.DataFrame(data=np_array.T)
df.describe()
I have created new class for columns you will find a file called defaultColumn
and I added new functions in kDataframe base class
void addColumn(string columnName, Column*);
template<typename T,typename Container>
T getKmerColumnValue(string columnName,string kmer);
template<typename T,typename Container>
void setKmerColumnValue(string columnName,string kmer, T value);
void changeDefaultColumnType(Column*);
template<typename T,typename Container>
T getKmerDefaultColumnValue(string kmer);
template<typename T,typename Container>
void setKmerDefaultColumnValue(string kmer, T value);
The text was updated successfully, but these errors were encountered: