Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mboudet committed Aug 12, 2021
1 parent 40cf768 commit 0d17a2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions askomics/libaskomics/CsvFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,15 @@ def guess_column_type(self, values, header_index):
if header_index == 0:
return "start_entity"

# If it matches "label"
if header_index == 1 and re.match(r".*label.*", self.header[header_index].lower(), re.IGNORECASE) is not None:
return "label"

# if name contain @, this is a relation
if self.header[header_index].find("@") > 0:
return "general_relation"

special_types = {
'label': ('label'),
'reference': ('chr', 'ref'),
'strand': ('strand', ),
'start': ('start', 'begin'),
Expand Down Expand Up @@ -497,7 +500,7 @@ def generate_rdf_content(self):
label_column = None
# Get first value, ignore others
if "label" in self.columns_type:
label_column = self.column_type.index("label")
label_column = self.columns_type.index("label")

# Loop on lines
for row_number, row in enumerate(reader):
Expand Down
2 changes: 1 addition & 1 deletion askomics/react/src/routes/integration/csvtable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default class CsvTable extends Component {
)
}

if (colIndex == 0) {
if (colIndex == 1) {
return (
<div>
<FormGroup>
Expand Down

0 comments on commit 0d17a2d

Please sign in to comment.