Truth#
missionbio.demultiplex.dna.truth.Truth
- class Truth(*args: Any, **kwargs: Any)#
 Truth data for GT demultiplexing
The truth data is a dataframe with the NGT for each cell and variant
Functions#
Return a Series/DataFrame with absolute numeric value of each element.  | 
|
Get Addition of dataframe and other, element-wise (binary operator add).  | 
|
Create truth for doublets.  | 
|
Prefix labels with string prefix.  | 
|
Suffix labels with string suffix.  | 
|
Aggregate using one or more operations over the specified axis.  | 
|
Aggregate using one or more operations over the specified axis.  | 
|
Align two objects on their axes with the specified join method.  | 
|
Return whether all elements are True, potentially over an axis.  | 
|
Return whether any element is True, potentially over an axis.  | 
|
Append rows of other to the end of caller, returning a new object.  | 
|
Apply a function along an axis of the DataFrame.  | 
|
Apply a function to a Dataframe elementwise.  | 
|
Convert the truth to the input file format used by pipelines  | 
|
Convert time series to specified frequency.  | 
|
Return the last row(s) without any NaNs before where.  | 
|
Assign new columns to a DataFrame.  | 
|
Cast a pandas object to a specified dtype   | 
|
Select values at particular time of day (e.g., 9:30AM).  | 
|
Synonym for   | 
|
Select values between particular times of the day (e.g., 9:00-9:30 AM).  | 
|
Synonym for   | 
|
Return the bool of a single element Series or DataFrame.  | 
|
Make a box plot from DataFrame columns.  | 
|
Trim values at input threshold(s).  | 
|
Perform column-wise combine with another DataFrame.  | 
|
Update null elements with value in the same location in other.  | 
|
Compare to another DataFrame and show the differences.  | 
|
Convert columns to best possible dtypes using dtypes supporting   | 
|
Make a copy of this object's indices and data.  | 
|
Compute pairwise correlation of columns, excluding NA/null values.  | 
|
Compute pairwise correlation.  | 
|
Count non-NA cells for each column or row.  | 
|
Compute pairwise covariance of columns, excluding NA/null values.  | 
|
Return cumulative maximum over a DataFrame or Series axis.  | 
|
Return cumulative minimum over a DataFrame or Series axis.  | 
|
Return cumulative product over a DataFrame or Series axis.  | 
|
Return cumulative sum over a DataFrame or Series axis.  | 
|
Generate descriptive statistics.  | 
|
First discrete difference of element.  | 
|
Get Floating division of dataframe and other, element-wise (binary operator truediv).  | 
|
Get Floating division of dataframe and other, element-wise (binary operator truediv).  | 
|
Compute the matrix multiplication between the DataFrame and other.  | 
|
Drop specified labels from rows or columns.  | 
|
Return DataFrame with duplicate rows removed.  | 
|
Return Series/DataFrame with requested index / column level(s) removed.  | 
|
Remove missing values.  | 
|
Return boolean Series denoting duplicate rows.  | 
|
Get Equal to of dataframe and other, element-wise (binary operator eq).  | 
|
Test whether two objects contain the same elements.  | 
|
Evaluate a string describing operations on DataFrame columns.  | 
|
Provide exponentially weighted (EW) calculations.  | 
|
Provide expanding window calculations.  | 
|
Transform each element of a list-like to a row, replicating index values.  | 
|
Synonym for   | 
|
Fill NA/NaN values using the specified method.  | 
|
Subset the dataframe rows or columns according to the specified index labels.  | 
|
Remove poor quality variants  | 
|
Select initial periods of time series data based on a date offset.  | 
|
Return index for first non-NA value or None, if no non-NA value is found.  | 
|
Get Integer division of dataframe and other, element-wise (binary operator floordiv).  | 
|
Construct DataFrame from dict of array-like or dicts.  | 
|
Convert structured or record ndarray to DataFrame.  | 
|
Get Greater than or equal to of dataframe and other, element-wise (binary operator ge).  | 
|
Get item from object for given key (ex: DataFrame column).  | 
|
Group DataFrame using a mapper or by a Series of columns.  | 
|
Get Greater than of dataframe and other, element-wise (binary operator gt).  | 
|
Return the first n rows.  | 
|
Make a histogram of the DataFrame's columns.  | 
|
Return index of first occurrence of maximum over requested axis.  | 
|
Return index of first occurrence of minimum over requested axis.  | 
|
Attempt to infer better dtypes for object columns.  | 
|
Print a concise summary of a DataFrame.  | 
|
Insert column into DataFrame at specified location.  | 
|
Fill NaN values using an interpolation method.  | 
|
Set the given value in the column with position 'loc'.  | 
|
Whether each element in the DataFrame is contained in values.  | 
|
Detect missing values.  | 
|
DataFrame.isnull is an alias for DataFrame.isna.  | 
|
Iterate over (column name, Series) pairs.  | 
|
Iterate over (column name, Series) pairs.  | 
|
Iterate over DataFrame rows as (index, Series) pairs.  | 
|
Iterate over DataFrame rows as namedtuples.  | 
|
Join columns of another DataFrame.  | 
|
  | 
|
Get the 'info axis' (see Indexing for more).  | 
|
Return unbiased kurtosis over requested axis.  | 
|
Return unbiased kurtosis over requested axis.  | 
|
Select final periods of time series data based on a date offset.  | 
|
Return index for last non-NA value or None, if no non-NA value is found.  | 
|
Get Less than or equal to of dataframe and other, element-wise (binary operator le).  | 
|
Label-based "fancy indexing" function for DataFrame.  | 
|
Get Less than of dataframe and other, element-wise (binary operator lt).  | 
|
Return the mean absolute deviation of the values over the requested axis.  | 
|
Replace values where the condition is True.  | 
|
Return the maximum of the values over the requested axis.  | 
|
Return the mean of the values over the requested axis.  | 
|
Return the median of the values over the requested axis.  | 
|
Unpivot a DataFrame from wide to long format, optionally leaving identifiers set.  | 
|
Return the memory usage of each column in bytes.  | 
|
Merge DataFrame or named Series objects with a database-style join.  | 
|
Return the minimum of the values over the requested axis.  | 
|
Get Modulo of dataframe and other, element-wise (binary operator mod).  | 
|
Get the mode(s) of each element along the selected axis.  | 
|
Get Multiplication of dataframe and other, element-wise (binary operator mul).  | 
|
Get Multiplication of dataframe and other, element-wise (binary operator mul).  | 
|
Get Not equal to of dataframe and other, element-wise (binary operator ne).  | 
|
Return the first n rows ordered by columns in descending order.  | 
|
Detect existing (non-missing) values.  | 
|
DataFrame.notnull is an alias for DataFrame.notna.  | 
|
Return the first n rows ordered by columns in ascending order.  | 
|
Count number of distinct elements in specified axis.  | 
|
Synonym for   | 
|
Percentage change between the current and a prior element.  | 
|
Apply chainable functions that expect Series or DataFrames.  | 
|
Return reshaped DataFrame organized by given index / column values.  | 
|
Create a spreadsheet-style pivot table as a DataFrame.  | 
|
Return item and drop from frame.  | 
|
Get Exponential power of dataframe and other, element-wise (binary operator pow).  | 
|
Return the product of the values over the requested axis.  | 
|
Return the product of the values over the requested axis.  | 
|
Return values at the given quantile over requested axis.  | 
|
Query the columns of a DataFrame with a boolean expression.  | 
|
Get Addition of dataframe and other, element-wise (binary operator radd).  | 
|
Compute numerical data ranks (1 through n) along axis.  | 
|
Get Floating division of dataframe and other, element-wise (binary operator rtruediv).  | 
|
Load dna truth from a csv file  | 
|
Conform Series/DataFrame to new index with optional filling logic.  | 
|
Return an object with matching indices as other object.  | 
|
Remove correlated variants on the same amplicon  | 
|
Removes poor quality variants  | 
|
Removes indels and spanning deletions from the assignment  | 
|
Alter axes labels.  | 
|
Set the name of the axis for the index or columns.  | 
|
Rearrange index levels using input order.  | 
|
Replace values given in to_replace with value.  | 
|
Resample time-series data.  | 
|
Reset the index, or a level of it.  | 
|
Get Integer division of dataframe and other, element-wise (binary operator rfloordiv).  | 
|
Get Modulo of dataframe and other, element-wise (binary operator rmod).  | 
|
Get Multiplication of dataframe and other, element-wise (binary operator rmul).  | 
|
Provide rolling window calculations.  | 
|
Round a DataFrame to a variable number of decimal places.  | 
|
Get Exponential power of dataframe and other, element-wise (binary operator rpow).  | 
|
Get Subtraction of dataframe and other, element-wise (binary operator rsub).  | 
|
Get Floating division of dataframe and other, element-wise (binary operator rtruediv).  | 
|
Return a random sample of items from an axis of object.  | 
|
Return a subset of the DataFrame's columns based on the column dtypes.  | 
|
Return unbiased standard error of the mean over requested axis.  | 
|
Assign desired index to given axis.  | 
|
Return a new object with updated flags.  | 
|
Set the DataFrame index using existing columns.  | 
|
Shift index by desired number of periods with an optional time freq.  | 
|
Return unbiased skew over requested axis.  | 
|
Equivalent to shift without copying data.  | 
|
Sort object by labels (along an axis).  | 
|
Sort by the values along either axis.  | 
|
Squeeze 1 dimensional axis objects into scalars.  | 
|
Stack the prescribed level(s) from columns to index.  | 
|
Return sample standard deviation over requested axis.  | 
|
Get Subtraction of dataframe and other, element-wise (binary operator sub).  | 
|
Get Subtraction of dataframe and other, element-wise (binary operator sub).  | 
|
Return the sum of the values over the requested axis.  | 
|
Interchange axes and swap values axes appropriately.  | 
|
Swap levels i and j in a   | 
|
Return the last n rows.  | 
|
Return the elements in the given positional indices along an axis.  | 
|
Copy object to the system clipboard.  | 
|
Write object to a comma-separated values (csv) file.  | 
|
Convert the DataFrame to a dictionary.  | 
|
Write object to an Excel sheet.  | 
|
Write a DataFrame to the binary Feather format.  | 
|
Write a DataFrame to a Google BigQuery table.  | 
|
Write the contained data to an HDF5 file using HDFStore.  | 
|
Render a DataFrame as an HTML table.  | 
|
Convert the object to a JSON string.  | 
|
Render object to a LaTeX tabular, longtable, or nested table.  | 
|
Print DataFrame in Markdown-friendly format.  | 
|
Convert the DataFrame to a NumPy array.  | 
|
Write a DataFrame to the ORC format.  | 
|
Write a DataFrame to the binary parquet format.  | 
|
Convert DataFrame from DatetimeIndex to PeriodIndex.  | 
|
Pickle (serialize) object to file.  | 
|
Convert DataFrame to a NumPy record array.  | 
|
Write records stored in a DataFrame to a SQL database.  | 
|
Export DataFrame object to Stata dta format.  | 
|
Render a DataFrame to a console-friendly tabular output.  | 
|
Cast to DatetimeIndex of timestamps, at beginning of period.  | 
|
Return an xarray object from the pandas object.  | 
|
Render a DataFrame to an XML document.  | 
|
Call   | 
|
Transpose index and columns.  | 
|
Get Floating division of dataframe and other, element-wise (binary operator truediv).  | 
|
Truncate a Series or DataFrame before and after some index value.  | 
|
Shift the time index, using the index's frequency if available.  | 
|
Convert tz-aware axis to target time zone.  | 
|
Localize tz-naive index of a Series or DataFrame to target time zone.  | 
|
Pivot a level of the (necessarily hierarchical) index labels.  | 
|
Modify in place using non-NA values from another DataFrame.  | 
|
Return a Series containing counts of unique rows in the DataFrame.  | 
|
Return unbiased variance over requested axis.  | 
|
Replace values where the condition is False.  | 
|
Return cross-section from the Series/DataFrame.  | 
Attributes#
Access a single value for a row/column label pair.  | 
|
Dictionary of global attributes of this dataset.  | 
|
Return a list representing the axes of the DataFrame.  | 
|
The column labels of the DataFrame.  | 
|
Return the dtypes in the DataFrame.  | 
|
Indicator whether Series/DataFrame is empty.  | 
|
Get the properties associated with this pandas object.  | 
|
Access a single value for a row/column pair by integer position.  | 
|
Purely integer-location based indexing for selection by position.  | 
|
The index (row labels) of the DataFrame.  | 
|
Access a group of rows and columns by label(s) or a boolean array.  | 
|
Return an int representing the number of axes / array dimensions.  | 
|
Return a tuple representing the dimensionality of the DataFrame.  | 
|
Return an int representing the number of elements in this object.  | 
|
Returns a Styler object.  | 
|
Return a Numpy representation of the DataFrame.  |