Results#
- class pyinfernal.cm.TopHits#
- __init__(*args, **kwargs)#
- merge(*others)#
Concatenate the hits from this instance and
others.If the
ZanddomZvalues used to compute E-values were computed by thePipelinefrom the number of targets, the returned object will update them by summingself.Zandother.Z. If they were set manually, the manual value will be kept, provided both values are equal.- Returns:
TopHits– A new collection of hits containing a copy of all the hits fromselfandother, sorted by E-value.- Raises:
ValueError – When trying to merge together several hits obtained from different
Pipelinewith incompatible parameters.
Caution
This should only be done for hits obtained for the same domain on similarly configured pipelines. Some internal checks will be done to ensure this is not the case, but the results may not be consistent at all.
- write(fh, format='3', header=True)#
Write the hits in tabular format to a file-like object.
- query#
The query object these hits were obtained for.
The actual type of
TopHits.querydepends on the query that was given to thePipelinethat created the object.- Type:
- class pyinfernal.cm.Hit#
- class pyinfernal.cm.Alignment#