News for hackers. Stuff that matters.
Re:Autocorrect errors in Excel still creating genomics headache by OptionX on Tuesday August 17, 2021 @12:24PM (#28211631)
Can anyone with first hand experience on this tell shed some light on why stick with Excel versus using python, R or what have you to treat the data?
Re:Autocorrect errors in Excel still creating genomics headache by an_d_rew on Tuesday August 17, 2021 @12:28PM (#28211684)
Because an absolutely enormous number of people involved in all ends of genomics and biomedical science have absolutely no inkling whatsoever about programming.

Furthermore, Microsoft office is installed everywhere everywhere everywhere… like it leave it love it or hate it, it doesn’t matter… it’s true (at least for huge swaths of the demographic).

So the first thing most people learn is excel and the last thing most people use is excel. It’s a database, it’s a spreadsheet, you can even use it as a word processor if you want to. And some have.

I’m not saying you could and I’m not saying you should, I’m just answering as to “why“.

Re:Autocorrect errors in Excel still creating genomics headache by OptionX on Tuesday August 17, 2021 @12:49PM (#28211977)
Even newcomers?

I've had my education in a engineering focused campus so that may skew it, but even not IT related area had programming courses to, at least, learn the basics.

Do the newer researcher still show reluctance to move from Excel or is it an old guard kind of deal?

Re:Autocorrect errors in Excel still creating genomics headache by jasode on Tuesday August 17, 2021 @01:23PM (#28212419)
>why stick with Excel versus using python, R or what have you to treat the data? [...] Do the newer researcher still show reluctance to move from Excel

The feature of Excel that's underestimated/overlooked by skilled programmers of Python/R is that spreadsheets immediately expose an editable visual spatial canvas datagrid GUI.

I have decades of programming C/C++/C#/Python/etc and yet I create new spreadsheets and use them every day.

Spreadsheets are much faster than wiring up a datagrid in C# or C++ Qt gui widget editor or any other "true" programming language. Spreadsheets are also faster than using Python package Pandas to import a csv into a dataframe and view it in a Jupyter notebook. And last time I checked, displaying an output grid of cells in Jupyter is read-only and not 2-way editable like Excel.

And yes, the complaint is that "MS Excel calculations are not auditable, repeatable, version controlled, etc". All true, but it still doesn't change the fact that Python doesn't have an instant datagrid GUI. UI affordances also matter in viewing science data sets as well as financial budgets.

Re:Autocorrect errors in Excel still creating genomics headache by OptionX on Tuesday August 17, 2021 @08:36PM (#28216446)
I'm not saying Excel is without its benefits or a bad tool, just perhaps shouldn't be the only one.

And I was wondering if people like in the non-engineering but scientific fields, as the ones discussed in post, are exposed to the alternatives during their formation years.

If one chooses to use Excel because its the best tool great, but if its because its the perceived only option that's probably counterproductive.

Re:Autocorrect errors in Excel still creating genomics headache by int_19h on Tuesday August 17, 2021 @04:45PM (#28214645)
Besides, these are not mutually exclusive - you can use Excel as the front-end to your Python code via something like PyXLL.
Re:Autocorrect errors in Excel still creating genomics headache by fartcannon on Tuesday August 17, 2021 @12:40PM (#28211865)
Yeah. At some point though, people who want to do something that requires python or R, but refuse to learn it, and then use Excel (and make mistakes like the article mentions) should reconsider their choices. This is really out of character for me, but in this instance, relying on excel to do everything is a mistake by the user, not Microsoft's ridiculous data destroying import function.

Use the right tool.

Re:Autocorrect errors in Excel still creating genomics headache by qayxc on Tuesday August 17, 2021 @12:51PM (#28212004)
> Use the right tool.

Step one should be learn your tool, no matter the tool.

There's several ways to avoid the issue in Excel. If someone working with Excel isn't able to learn that (heck, a simple template would suffice), I have no hope the same demographic would have any success with R or Python.

Re:Autocorrect errors in Excel still creating genomics headache by da_chicken on Tuesday August 17, 2021 @01:57PM (#28212839)
> There's several ways to avoid the issue in Excel.

No, not really. There are several ways to help reduce the issue, but none of them eliminate what it does.

Example that comes to mind is the data file for College Board's SAT test. The data formats for student reports for schools come in two formats: PDF (one page per student), CSV, and fixed-width. That is the comprehensive list of your options. College Board doesn't care about you as a customer. They're too big. Any request you submit will be black holed.

Some of the columns in the file indicate a range, usually in the format "X-Y". Excel will try to coerce that into a date, if it's valid.

Other columns indicate a ratio, expressed as "X/Y". Excel will coerce that into a date, if it's valid.

Other columns indicate an ID number, expressed as a large, fixed-digit number, zero-padded. Excel will coerce that into an integer, or, if it's too long, into scientific notation discarding digits.

It doesn't matter how you format the CSV. Excel will do the above.

Here's an example CSV:

  ID,Range,Ratio
  12345678901234567890,8-9,"7/15"
  "00000000000000012345","9-10",21/35
I open that with Excel and immediately save it as a CSV. I look at the file in a text editor and I see:

  ID,Range,Ratio
  1.23457E+19,9-Aug,15-Jul
  12345,10-Sep,21/35
Do you have any idea how fun it is to explain to teachers and school administrators what happened here?

The correct way to work with this data file is: Do not, under any circumstances, open it with Excel if you expect to use it for anything else.

The problem is, there are very few applications that work well with CSV files. I know of CsvEd and Delimit. There are several text editors with a CSV column mode that makes the file look like a table (with varying degrees of success). All of these vary between "godawful" and "a complete nightmare" in terms of performance and usability compared to Excel.

Re:Autocorrect errors in Excel still creating genomics headache by dragonwriter on Tuesday August 17, 2021 @02:39PM (#28213305)
> It doesn't matter how you format the CSV. Excel will do the above.

Only if you open the file, so that Exel assumes defaults for formatting. If you import the CSV (Data -> From Text in the current UI) you can specify the format with the Import Text Wizard as described on the College Board instructions for using the file. Except...

Unfortunately, the College Board has outdated instructions on their website; Excel used to offer the Import Text Wizard on opening a csv or text file, rather than making default assumptions, and the College Board instructions page, while it does tell you to use that Import Text Wizard and provide all the details of what to plug into that wizard, tells you to open the file to get it, which bypasses the wizard.

Things like this is why clerical and other low-level positions involving excel test candidates on proficiency with specific versions of excel. Higher-level workers are expected to be able to figure out these kind of changes themselves, though (or consume lower-level staff time, if they are in management.

Re:Autocorrect errors in Excel still creating genomics headache by da_chicken on Tuesday August 17, 2021 @03:56PM (#28214121)
Yeah, that's also obnoxious. The Data From Text wizard lets you easily import the data... but if you do that then the first row no longer defaults to headers. So if you open it that way and want to filter or sort the data, your headers will disappear. You have to go into full blown Power Query to do both prevent reformatting and use column headers, and you have to reassign the data types on a much more complex interface.

We have now changed a 1 second automated process that anybody could do, into a 2 minute manual process that requires knowledge of data types. We've gone from a non-technical task to a highly technical task. To open a file without completely munging the data.

It also will sometimes do weird things like exclusive lock the file on disk until you close every open window of Excel because it creates data connections to the file.

Re:Autocorrect errors in Excel still creating genomics headache by dragonwriter on Tuesday August 17, 2021 @04:03PM (#28214203)
> The Data From Text wizard lets you easily import the data... but if you do that then the first row no longer defaults to headers. So if you open it that way and want to filter or sort the data, your headers will disappear. You have to go into full blown Power Query to do both prevent reformatting and use column headers

You don't, because while the wizard doesn't default to headers, the first screen of the wizard has a checkbox for it, so the option is there without Power Query.

Re:Autocorrect errors in Excel still creating genomics headache by da_chicken on Tuesday August 17, 2021 @07:33PM (#28216005)
Not on my Excel 2019. You pick "scan first 200" and it sets first rows to headers. You set it to all text, and it disables first row headers.

There is no checkbox in the wizard.

Re:Autocorrect errors in Excel still creating genomics headache by occamrazor on Tuesday August 17, 2021 @02:27PM (#28213193)
If you open the csv file with Excel you get those errors. If instead one uses Get&Transform (aka Power Query) then it is possible to specify the type of each column.
Re:Autocorrect errors in Excel still creating genomics headache by pletnes on Tuesday August 17, 2021 @01:19PM (#28212367)
As someone who has programmed in python for a decade, and no idea how to do anything right in Excel, I would beg to differ.
Re:Autocorrect errors in Excel still creating genomics headache by qayxc on Tuesday August 17, 2021 @03:03PM (#28213573)
Do you use Excel on a daily basis for productive work as well?

If not then your personal experience is irrelevant in this context.

Re:Autocorrect errors in Excel still creating genomics headache by CobaltFire on Tuesday August 17, 2021 @02:00PM (#28212874)
Not specifically this topic but I ran into an issue that would have been trivial in any real programming language this week, but I’m not able to USE anything that’s not on my work computer due to data restrictions.

So I get to cobble together some really ugly spreadsheets in excel when I’d MUCH rather use something more appropriate. Sometimes it’s not the person, it’s the org. In this case, government.

Re:Autocorrect errors in Excel still creating genomics headache by jpeloquin on Tuesday August 17, 2021 @12:53PM (#28212043)
As a biomedical researcher who prefers using python & R over Excel:

(1) Graduate students (who are the bulk of the scientific labor force) usually have some training in python, R, or Matlab, but are seldom practiced in applying it to real-world work. So if a lab standardizes on python, R, etc. the senior people have to do a lot of extra work to support the programming, rather than doing work with intrinsic scientific value. It's easier to teach the Excel quirks than to teach effective programming practices. Excel quirks are concrete, and "good practices" in programming are vague and situational.

(2) Python & R have their own pitfalls. It's easy to apply the wrong filters to a data set and compare subsets that aren't what you think you're comparing. Although when they go wrong, they go very wrong, and this is easier for a supervisor to notice.

(3) Excel has rich text formatting, graph embedding, and data types, so it's very useful as a human-readable data interchange & summary format even if you never do computation in it.

IMO neither programming languages nor Excel are a great fit for data analysis. Something purpose-made, like JMP or even GraphPad, is probably the better choice in most situations. Programming gets you automation but at the cost of high complexity. Since you still need to look at and think about the data there's a limit to how much time automation can save (Amdahl's law).

Re:Autocorrect errors in Excel still creating genomics headache by cm2187 on Tuesday August 17, 2021 @12:45PM (#28211933)
When you have done programming for a while and it is mostly muscle memory, it is easy to forget how much it is an impenetrable black box to someone who has never done it.

Try to tell someone who just needs to get a task done that he needs to spend the next 3 months learning programming from scratch vs using excel.

Re:Autocorrect errors in Excel still creating genomics headache by breakfastduck on Tuesday August 17, 2021 @01:37PM (#28212583)
Tough shit, though. Thats what they're being paid for.

"A bad workman always blames his tools" has never been truer than this situation.

Re:Autocorrect errors in Excel still creating genomics headache by gerdesj on Tuesday August 17, 2021 @12:30PM (#28211721)
"That’s something Purdie says she doesn’t have time for. She has adapted to Excel’s quirks, adding apostrophes before commonly affected genes to prevent the conversion, or pre-formatting spreadsheet cells before importing data. “It’s one of those things that I just accept,” she says."
Re:Autocorrect errors in Excel still creating genomics headache by qayxc on Tuesday August 17, 2021 @12:52PM (#28212018)
Wait, if she knows how to avoid the issue, how is it still an issue?
Re:Autocorrect errors in Excel still creating genomics headache by acomjean on Wednesday August 18, 2021 @12:43AM (#28217849)
I work in bioinformatics and have seen the issue.

You get data from a lot of sources, and people (like me) just sometimes forget to check the spreadsheet. Often a csv file so it’s not clear it’s been generated by excel. It’s also only a problem for gene symbols (not entrez gene IDs or flybase gene numbers). Also the datasets are big, so there are 15 genes in error over the whole dataset it can be hard to spot.

Honestly genes are a constantly moving target and are kinda a pain to write software for. They get new names, split and merge over time…

Re:Autocorrect errors in Excel still creating genomics headache by qayxc on Wednesday August 18, 2021 @05:20AM (#28219113)
What really interests me is why your field is still using untyped CSV data for exchanging information, instead of say XML.

And why hasn't there been a collaboration between professionals to fix this on an organisational level (like agreeing on a spreadsheet template or sane method for data exchange)?

Is it really every lab for themselves with MS Excel and CSV of all things being the lowest common denominator?

Re:Autocorrect errors in Excel still creating genomics headache by acomjean on Thursday August 19, 2021 @08:26AM (#28232906)
File sizes are an issue and xml won’t help. The file formats are wierd (fasta?) but they are at least kinda standard.

There are groups dedicated to organizing/ annotating genes. They’re quite organized and have highly structured databases.

http://gmod.org/wiki/Introduction_to_Chado

A lot of the model orgainism species have gotten together to make thinks more uniform.

https://www.alliancegenome.org/

Also most people in this field are using free software.

Re:Autocorrect errors in Excel still creating genomics headache by gpapilion on Tuesday August 17, 2021 @12:40PM (#28211863)
I took a programming for math majors course in college, and the largest challenge for the class was understanding procedural looping to process data sets. Understanding a for loop or a while loop really was a hard concept for someone to understand. We didn't cover any real data structures, and everything was a 2 dimensional array.

Excel, and most spreadsheets for that, avoid some of the basic control structures beginners find challenging. Many functions are basically map and reduce functions so you typically are getting the same number of cells back, or one. Often maps are done visually in the spreadsheet with a formula being applied to every cell in a column.

Re:Autocorrect errors in Excel still creating genomics headache by delosrogers on Tuesday August 17, 2021 @12:40PM (#28211871)
From my experience Python/R can be great when you have large scale analysis to do but if you have a task that requires more manual fiddling with the data then it’s much nicer to use Excel.
Re:Autocorrect errors in Excel still creating genomics headache by enaaem on Tuesday August 17, 2021 @12:31PM (#28211739)
It might be easier to teach people how to use excel correctly with for example power query.
Re:Autocorrect errors in Excel still creating genomics headache by taeric on Tuesday August 17, 2021 @02:26PM (#28213183)
The same line of questioning can easily land in "why use csv?"

It is a terrible format that has very few redeeming qualities. It happens to also be the most widely used one.

Re:Autocorrect errors in Excel still creating genomics headache by happytoexplain on Tuesday August 17, 2021 @12:36PM (#28211807)
Is there any reason to suspect that the primary factor is something other than the difference between an extremely featured end user GUI and programming?
Re:Autocorrect errors in Excel still creating genomics headache by minikites on Tuesday August 17, 2021 @12:28PM (#28211678)
Given that these are relatively unskilled users, would switching away from Excel increase or decrease errors? I don't think it's a given that errors would decrease by switching away from Excel.
Re:Autocorrect errors in Excel still creating genomics headache by blackbear_ on Tuesday August 17, 2021 @12:38PM (#28211837)
Anecdotically, I was talking to an acquaintance who decided to pick up R as a replacement for excel for data analysis and they were positively blown away by the possibilities opened by the new mindset that came with programming.

So yes, maybe these "relatively unskilled users" will struggle for a few weeks/months, but it will be a net positive change as many of them will see immense benefit after some tinkering.

Re:Autocorrect errors in Excel still creating genomics headache by instagraham on Tuesday August 17, 2021 @12:31PM (#28211737)
I think there is a difference between the errors. Excel autocorrect errors are easy to miss as it is the software making an arbritrary decision over your own.

Errors made from using a new , presumably neutral software, would be the kind you are supposed to catch as a researcher.

There is obviously scope for error in everything but Excel's user-hostile methods are not justified by this.

Re:Autocorrect errors in Excel still creating genomics headache by an_d_rew on Tuesday August 17, 2021 @12:32PM (#28211751)
Switch to what?

Excel is everywhere.

People are familiar with it. The same people are often not familiar with, and have never used, and may even be confused by “notepad.exe”.

Re:Autocorrect errors in Excel still creating genomics headache by ltbarcly3 on Tuesday August 17, 2021 @12:39PM (#28211855)
These aren't someone's 85 year old grandparent getting a computer for the first time to look at pictures of their great grandchildren, these are people who have used a computer every day since they were 14 and have advanced STEM degrees. I think they are probably re-trainable.
Re:Autocorrect errors in Excel still creating genomics headache by Iwan-Zotow on Tuesday August 17, 2021 @12:45PM (#28211934)
XXX YYY ZZZ, PhD in genomics, probably re-trainable