Skip to content

Commit

Permalink
WIP, responded to suggestions from PR #384
Browse files Browse the repository at this point in the history
  • Loading branch information
MGS-sails committed Feb 4, 2025
1 parent 017e9af commit b8fc9bd
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/Analysis/Functional/GO/v2index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const GO: React.FC = () => {
const { overviewData } = useContext(AnalysisContext);
const [chart] = useQueryParamState('chart', 'bar');
const { data, loading, error } = useMGnifyData(
`analyses/${overviewData.id}/go-slim`
`analyses/${overviewData.id}/go_slims`
);
const [dataBundles, setDataBundles] = useState(null);
useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useRef, useEffect, useContext, useState } from 'react';
import * as Highcharts from 'highcharts';
import addExportMenu from 'highcharts/modules/exporting';
import HighchartsReact from 'highcharts-react-official';
import { noop } from 'lodash-es';

Expand All @@ -12,8 +11,6 @@ import useInterProMatchesProvider, {
} from 'hooks/data/useInterProMatchesProvider';
import { TAXONOMY_COLOURS } from 'utils/taxon';

addExportMenu(Highcharts);

type InterProMatchesChartProps = {
selectedName?: string;
onTotalChange?: (total: number) => void;
Expand Down
4 changes: 0 additions & 4 deletions src/components/Analysis/Functional/InterPro/v2QCChart.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import React, { useRef, useContext } from 'react';
import * as Highcharts from 'highcharts';
import addExportMenu from 'highcharts/modules/exporting';

import HighchartsReact from 'highcharts-react-official';
import AnalysisContext from 'pages/Analysis/V2AnalysisContext';

addExportMenu(Highcharts);

/**
* Get the series for a category.
* This method will check if the series contains "contigs" or "reads".
Expand Down
2 changes: 1 addition & 1 deletion src/components/Analysis/Functional/InterPro/v2index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const InterPro: React.FC = () => {
const [pageSize] = useQueryParamState('page_size', PAGE_SIZE, Number);
const [order] = useQueryParamState('order', '');
const { data, loading, error, isStale } = useMGnifyData(
`analyses/${analysisData.accession}/interpro-identifiers`,
`analyses/${analysisData.accession}/interpro_identifiers`,
{
page: page as number,
ordering: order as string,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Analysis/Functional/v2index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import useQueryParamState from 'hooks/queryParamState/useQueryParamState';
import PfamTab from 'components/Analysis/Functional/KO';
import KOTab from 'components/Analysis/Functional/Pfam';
import InterProTab from './InterPro/v2index';
import GOTab from './GO/index';
import GOTab from './GO/v2index';

const PARAMETER_NAME = 'type';
const PARAMETER_DEFAULT = 'interpro';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useContext, useRef } from 'react';
import * as Highcharts from 'highcharts';
import addExportMenu from 'highcharts/modules/exporting';
import HighchartsReact from 'highcharts-react-official';

import Loading from 'components/UI/Loading';
Expand All @@ -10,8 +9,6 @@ import { ResponseFormat, TSVResponse } from 'hooks/data/useData';
import useURLAccession from 'hooks/useURLAccession';
import AnalysisContext from 'pages/Analysis/V2AnalysisContext';

addExportMenu(Highcharts);

type ContigsHistogramProps = {
summaryData: {
[key: string]: string;
Expand Down

0 comments on commit b8fc9bd

Please sign in to comment.