So Long

How long does it take to publish a paper?

I posted the picture below on Twitter to show how long it takes for us to publish a paper.

papers

The answer is 235 days. This is the median time from submission at the first journal to publication online or in print. The data are from our last ten papers.

The infographic proved popular with 40 retweets and 22 favourites. It was pointed out to me that the a few things would improve this visualisation:

1. Showing the names of the journals

2. Showing when the 1st submission was relative to the 1st submission at the journal that finally accepted the paper

3. What about reviews and other types of publication.

I am working on updating the graph to show all of these things… watch this space.

My point was really to show (perhaps to non-scientists) how long the process of publishing a paper can be. There is other information that can be gleaned from this, e.g. what proportion of time is at the journal’s side and how much is at our end?

The people who are eager to see which journals perform badly (slowly) will be disappointed: this is a very small subset of papers from one lab. I’d be interested in scraping the information on journal tardiness on a larger scale and synthesising this so that it can inform journal choice. Recently though major publishers have taken steps to make this information less accessible so don’t hold your breath.

The title of this post is from So Long by Cian Ciarán from the LP ‘Outside In’

Counting backwards

I thought I would start add a blog to our lab website. The plan is to update maybe once a week with content that is too long for twitter but doesn’t fit in the categories on the lab website. I’m thinking extra analysis, paper commentaries, outreach activities etc. Let’s see how it goes.

First up: how do you count the number of words or characters in a text file?

Microsoft Word has a nice feature for doing this, but poor old TextEdit does not. Fortunately, AppleScript can come to the rescue! I found a script on the web to count the number of words in a TextEdit file and modified it slightly to give the number of characters as well.

Why would you want to do this? When editing fields on a web form (particularly grant application forms) it’s not practical to do this in the browser and these fields often have strict limits on words and characters.

Here is the code:


tell application "TextEdit"
	set wc to count words of document 1
	set cc to count characters of document 1
	if wc is equal to 1 then
		set txt to " word, "
	else
		set txt to " words, "
	end if
	if cc is equal to 1 then
		set txtc to " character."
	else
		set txtc to " characters."
	end if

	set result to "This text comprises " & (wc as string) & txt & (cc as string) & txtc
	display dialog result with title "WordStats" buttons {"OK"} default button "OK"
end tell

If you are new to this: open AppleScript Editor. New file. Paste in the code above. Click Compile. It should look something like this:

textedit

 

Now Save it to your Scripts folder in home/Library. Call it something sensible e.g. TextEditCounter. Now, in AppleScript Editor. Click Preferences and check the box ‘Show script menu in menu bar’. This shows the AppleScript icon in your menu bar and if you click there, you should see your script there waiting for you to use it.

This blog title is taken from Counting Backwards – Throwing Muses from their LP The Real Ramona.