Closed eboileau closed 4 months ago
Somewhat unexpected based on documentation -> did you open an issue with them ? bed converts BED, bedGraph or other BED-like files. Only genome coordinates (i.e., the first 3 columns) will be updated. Regions mapped to multiple locations to the new assembly will be split.
Ok, the docs say
CrossMap converts BED files with less than 12 columns to a different assembly by updating the chromosome and genome coordinates only; all other columns remain unchanged. Regions from the old assembly mapping to multiple locations to the new assembly will be split. For 12-columns BED files, all columns will be updated accordingly except the 4th column (name of bed line), 5th column (score value), and 9th column (RGB value describing the display color). 12-column BED files usually define multiple blocks (e.g., exons); if any of the exons fails to map to a new assembly, the whole BED line is skipped.
I tested again and this is consistent with what I observe.
So we're just really unlucky to have exactly 12 columns (but not a BED12 file) in this case...
This extra column https://github.com/dieterich-lab/scimodom/blob/426d044dd54a1f08f614dc8bcbf9998dcfddf8d6/server/src/scimodom/database/models.py#L317 is absolutely required, and has to go into the BED file.
CrossMap fails silently with more than 12 columns.
I hate to do that, but I think we have no choice but to use some trick...
Also, using the BED importer won't work, so we have to adjust Data importer.
A clear and concise description of what the bug is.
But maybe CrossMap believes this is a BED12 file...?
Output or error messages.
12th column is our
association_id
. On flush, this results insqlalchemy.exc.IntegrityError: (MySQLdb.IntegrityError) (1364, "Field 'association_id' doesn't have a default value")
.Additional context
No response
What browser were you using?
Firefox
What version of Sci-ModoM were you using?
dev