ca1f5d4b6f57481b8468c77dc40a65f9eb4ec029 braney Wed Apr 8 14:57:47 2026 -0700 Fix bigPsl.as documentation: say "other sequence" not "other chromosome", add PSL field names, refs #37155 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> diff --git src/hg/inc/bigPsl.h src/hg/inc/bigPsl.h index 6d2cc9272e8..a21feead1eb 100644 --- src/hg/inc/bigPsl.h +++ src/hg/inc/bigPsl.h @@ -20,38 +20,38 @@ /* bigPsl pairwise alignment */ { struct bigPsl *next; /* Next in singly linked list. */ char *chrom; /* Reference sequence chromosome or scaffold */ unsigned chromStart; /* Start position in chromosome */ unsigned chromEnd; /* End position in chromosome */ char *name; /* Name or ID of item, ideally both human readable and unique */ unsigned score; /* Score (0-1000) */ char strand[2]; /* + or - indicates whether the query aligns to the + or - strand on the reference */ unsigned thickStart; /* Start of where display should be thick (start codon) */ unsigned thickEnd; /* End of where display should be thick (stop codon) */ unsigned reserved; /* RGB value (use R,G,B string in input file) */ int blockCount; /* Number of blocks */ int *blockSizes; /* Comma separated list of block sizes */ int *chromStarts; /* Start positions relative to chromStart */ - unsigned oChromStart; /* Start position in other chromosome */ - unsigned oChromEnd; /* End position in other chromosome */ - char oStrand[2]; /* + or -, - implies doing a reverse complement on the psl on output */ - unsigned oChromSize; /* Size of other chromosome. */ - int *oChromStarts; /* Start positions relative to oChromStart or from oChromStart+oChromSize depending on strand */ - char *oSequence; /* Sequence on other chrom (or edit list, or empty) */ + unsigned oChromStart; /* Start position in other sequence (PSL qStart) */ + unsigned oChromEnd; /* End position in other sequence (PSL qEnd) */ + char oStrand[2]; /* + or -, - means that psl was reversed into BED-compatible coordinates */ + unsigned oChromSize; /* Size of other sequence (PSL qSize) */ + int *oChromStarts; /* Start positions in other sequence; relative to oChromStart or oChromStart+oChromSize depending on strand (PSL qStarts) */ + char *oSequence; /* Sequence on other side of alignment (or edit list, or empty) */ char *oCDS; /* CDS in NCBI format */ - unsigned chromSize; /* Size of target chromosome */ + unsigned chromSize; /* Size of reference sequence (PSL tSize) */ unsigned match; /* Number of bases matched. */ unsigned misMatch; /* Number of bases that don't match */ unsigned repMatch; /* Number of bases that match but are part of repeats */ unsigned nCount; /* Number of 'N' bases */ unsigned seqType; /* type of sequence in oSequence */ }; struct bigPsl *bigPslLoad(char **row); /* Load a bigPsl from row fetched with select * from bigPsl * from database. Dispose of this with bigPslFree(). */ struct bigPsl *bigPslLoadAll(char *fileName); /* Load all bigPsl from whitespace-separated file. * Dispose of this with bigPslFreeList(). */