Skip to content

Commit

Permalink
Seems to work fine
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiara Rasi committed Dec 17, 2024
1 parent c33a587 commit f9a974d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion schug/load/biomart.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def create_biomart_xml(
filters: dict, attributes: List[str], header: Optional[bool]
) -> str:
"""Convert Ensembl Biomart query parameters into a XML format Ensembl Biomart query."""
LOG.warning(f"header is -->{header}")
filter_lines: List[str] = EnsemblXML.xml_filters(filters)
attribute_lines = EnsemblXML.xml_attributes(attributes)
xml_lines = [
Expand Down
5 changes: 4 additions & 1 deletion schug/load/ensembl.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ def fetch_ensembl_biomart(
build = build or "37"

client = EnsemblBiomartClient(
build=build, filters=filters, attributes=attributes, header="1" in filters
build=build,
filters=filters,
attributes=attributes,
header="1" in filters["chromosome_name"],
)
LOG.info("Selecting attributes: %s", ", ".join(attributes))
LOG.info("Use filter: %s", filters)
Expand Down

0 comments on commit f9a974d

Please sign in to comment.